@progress/kendo-react-mcp 1.10.1 → 1.11.0

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 +180 -319
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,37 +1,43 @@
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 Qt}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as Jt}from"@modelcontextprotocol/sdk/server/stdio.js";import{dirname as Dt,join as _t}from"path";import{fileURLToPath as Gt}from"url";import{loadLicense as Ct,decodeLicenseKey as At,decodeLicenseEvidence as kt}from"@progress/kendo-licensing/utils";var z=class extends Error{constructor(t){super(t),this.name="LicenseError"}};function de(e){return e.replace(/^\uFEFF/,"")}async function X(e){let t=null,o=null;try{let s=Ct();if(!s.success){let r=new z(s.message);throw e&&await e("license_load_failed",{error:s.message}).catch(()=>{}),r}try{t=(await At(s.value)).licenses.find(async a=>!!(await kt(a)).userId)}catch(r){console.log(r.message),e&&await e("license_load_failed",{error:r.message||"Unknown decoding error"}).catch(()=>{})}if(!t)return[de(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[de(t),null]}import $ from"node:fs";import H from"node:path";var Q=!1,D=process.env.DEBUG_LOG_FILE,pe=!!(D&&typeof D=="string");if(pe){let e=H.resolve(D),t=H.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 Q=!1;Q=pe&&!!D&&$.existsSync(H.resolve(D));function C(...e){if(Q&&D){let s=`${new Date().toISOString()}: ${e.join(" ")}
3
+ `,r=H.resolve(D);$.appendFile(r,s,a=>{a&&console.error("Error writing to log file:",a)})}}import xt from"@grpc/proto-loader";import F from"@grpc/grpc-js";import ge from"path";import ue from"fs";import{fileURLToPath as St}from"url";var It=St(import.meta.url),Tt=ge.dirname(It),he={version:"unknown"},me=ge.resolve(Tt,"../package.json");ue.existsSync(me)&&(he=JSON.parse(ue.readFileSync(me,"utf-8")));function J(e){return typeof e=="string"&&e.length>0&&e.length<200&&/^[\x20-\x7e]+$/.test(e)}function Rt(e){return e==="semantic"||e==="fallback"}function Nt(e){return e.replace(/\u2014/g,"--").replace(/\u2013/g,"-").replace(/[^\x20-\x7E]/g,"")}var Y=class{constructor(t,o,s){this.contextApiUrl=t;this.protoPath=o;this.options=s;this.toolNameHeader="assistant";let r=xt.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"),C("Using ContextApi URl:",this.contextApiUrl);let a=F.loadPackageDefinition(r);this.client=new a.ContextQueryService(this.contextApiUrl||"contextapi.telerik.com:443",this.isDev?F.credentials.createInsecure():F.credentials.createSsl())}buildRequestMetadata(t={}){return Nt(JSON.stringify({...t,source:"npm",version:he.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=t??{},{langfuseSessionId:s,toolInvocationId:r,mcpToolName:a,workflowSessionSource:n,workflowSessionExplicitIdRejected:l,...m}=o;delete m["progress.com/kendo-ui-workflow-session-id"];let[d,h]=this.isDev?["fake_license",null]:await X((y,f)=>this.logEvent(y,f)),v=process.env.CONTEXTAPI_API_KEY,g=v&&typeof v=="string",i=d&&typeof d=="string";if(!i&&!g&&h)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: ${h}`);let c=new F.Metadata;if(i)try{c.add("x-license-key",d)}catch(y){throw C("Error adding license key to metadata:",y),new Error(`Failed to use license key: ${y.message}`)}return g&&c.add("x-api-key",v),this.options?.libName&&c.add("x-library-name",this.options.libName),c.add("x-tool-name",this.toolNameHeader),J(s)&&c.add("x-langfuse-session-id",s),J(r)&&c.add("x-tool-invocation-id",r),J(a)&&c.add("x-mcp-tool-name",a),Rt(n)&&c.add("x-workflow-session-source",n),typeof l=="boolean"&&c.add("x-workflow-session-explicit-id-rejected",String(l)),c.add("x-request-metadata",this.buildRequestMetadata(m)),c}async query(t,o){let s=await this.getMetadata({meta:o});return new Promise((r,a)=>{this.client.query(t,s,(n,l)=>{n?a(n):r(l)})})}async getApiRefMatches(t,o){let s=await this.getMetadata({meta:o});return new Promise((r,a)=>{this.client.getApiRefMatches(t,s,(n,l)=>{n?a(n):r(l)})})}async queryCssUtils(t,o){let s=await this.getMetadata({meta:o});return new Promise((r,a)=>{this.client.cssUtilsSearch(t,s,(n,l)=>{n?(C("Error querying CSS Utils:",n),a(n)):r(l)})})}async queryIconsSearch(t,o){let s=await this.getMetadata({meta:o});return new Promise((r,a)=>{this.client.iconsSearch(t,s,(n,l)=>{n?(C("Error querying Icons Search:",n),a(n)):r(l)})})}async queryBuildingBlocks(t,o){let s=await this.getMetadata({meta:o});return new Promise((r,a)=>{this.client.buildingBlocksSearch(t,s,(n,l)=>{n?(C("Error querying Building Blocks:",n),a(n)):r(l)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((o,s)=>{this.client.validateUserLicense({},t,(r,a)=>{r?(C("Error validating user license:",r),s(r)):o(a)})})}async queryThemeGenerate(t,o){let s=await this.getMetadata({meta:o});return new Promise((r,a)=>{this.client.generateTheme(t,s,(n,l)=>{n?(C("Error querying context API/GenerateTheme:",n),a(n)):r(l)})})}async recordOrchestratorUserRequest({meta:t}){let o=await this.getMetadata({meta:t});return new Promise((s,r)=>{this.client.recordOrchestratorUserRequest({},o,(a,n)=>{a?(C("Error recording orchestrator user request:",a),r(a)):s(n)})})}async recordToolUserRequest({toolName:t,meta:o}){let s=await this.getMetadata({meta:o});return new Promise(r=>{this.client.recordToolUserRequest({tool_name:t},s,(a,n)=>{a?(a.code===7?C("recordToolUserRequest: license does not cover Kendo AI Tools, skipping telemetry."):C("Error recording tool user request:",a),r(null)):r(n)})})}async logEvent(t,o,s={}){let r="h8utJ6rk4PpIWX4JMn9beQDsjVUri6KV0XYfiVwq",{enrichWithUserData:a=!1,meta:n={}}=s,l=r&&typeof r=="string",m=null;if(a)try{let[h]=this.isDev?["fake_license",null]:await X();h&&typeof h=="string"&&(m=h)}catch{}if(!l&&!m){C("Neither LOGGING_API_KEY nor license key available, skipping log event");return}let d=new F.Metadata;return l&&d.add("x-api-key",r),m&&(d.add("x-license-key",m),d.add("x-request-metadata",this.buildRequestMetadata(n)),this.options?.libName&&d.add("x-library-name",this.options.libName)),new Promise((h,v)=>{this.client.logEvent({event_name:t,fields:o||{}},d,(g,i)=>{g?(C("Error logging event:",g),v(g)):h()})})}};import{z as Z}from"zod";var ko=Z.object({user_id:Z.string(),user_email:Z.string().email()});import{z as w}from"zod";var Et=w.object({Product:w.object({Id:w.number().int(),Code:w.string(),Name:w.string()}),License:w.nullable(w.object({Id:w.number().int(),Name:w.string(),Type:w.string(),Active:w.boolean()})),Availability:w.array(w.object({LicenseStart:w.nullable(w.string().datetime()),LicenseEnd:w.nullable(w.string().datetime())})),IsLicenseAvailable:w.optional(w.boolean())}),So=w.array(Et);function I(e,t){let o=e.server?.server.getClientVersion?.(),s=t||{};return o&&(s.clientInfo={name:o.name,version:o.version}),s}async function fe(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 ye(){return'**Accessibility Guidelines: WCAG 2.2 Level AA Compliance**\n\n**Core Principles:**\n1. Use semantic HTML and ARIA correctly\n2. Ensure WCAG 2.2 AA compliance\n3. Follow W3C ARIA Authoring Practices\n4. Provide standards-based accessibility fixes\n\n**1. Form Control Labels** (WCAG 1.3.1, 3.3.2, 4.1.2)\nEvery input must have an associated label.\nCORRECT: `<input type="search" aria-label="Search products" placeholder="Search...">`\nCORRECT: `<label for="qty">Quantity</label><input type="number" id="qty">`\nWRONG: `<span>Email</span><input type="email">` (no association)\nWRONG: `<input type="email" placeholder="Email">` (placeholder as label)\n\n**2. Button Accessibility** (WCAG 4.1.2, 2.4.6, 2.5.3)\nAll buttons need accessible names describing their purpose.\nCORRECT: `<button type="button">Save Changes</button>`\nCORRECT: `<button aria-label="Close dialog"><svg aria-hidden="true" focusable="false">...</svg></button>`\nWRONG: `<button><svg>...</svg></button>` (no accessible name)\nWRONG: `<button>Click here</button>` (generic text)\n\n**3. Popup/Menu Triggers** (WCAG 4.1.2, 1.3.1)\nIndicate popup purpose and state using aria-haspopup, aria-expanded, aria-controls.\nCORRECT: `<button aria-expanded="false" aria-haspopup="menu" aria-controls="menu-id">Settings</button>`\n\n**4. Image Accessibility** (WCAG 1.1.1)\nInformative: `<img src="chart.png" alt="Sales increased 25% in Q4 2024">`\nFunctional: `<a href="/home"><img src="logo.png" alt="Company Name Home"></a>`\nDecorative: `<img src="border.png" alt="" role="presentation">`\nComplex: `<img src="chart.png" alt="Sales data" aria-describedby="desc-id">`\nWRONG: Missing alt, filename as alt, generic alt for decorative images\n\n**5. Link Accessibility** (WCAG 2.4.4, 2.4.6)\nLinks must be descriptive and understandable out of context.\nCORRECT: `<a href="/products">View All Products</a>`\nCORRECT: `<a href="/article" aria-label="Read more about New Product Launch">Read more</a>`\nWRONG: "Click here", "Read more", "Learn more" without context\n\n**6. Form Validation** (WCAG 3.3.1, 3.3.2, 3.3.3)\nErrors must be identified, associated with inputs, and provide suggestions. Use aria-describedby, aria-invalid="true", and role="alert".\n\n**7. Heading Structure** (WCAG 1.3.1, 2.4.6)\nEach page must have an `<h1>` that describes its content. Use hierarchical, descriptive headings with no skipped levels (h1\u2192h2\u2192h3).\nCORRECT: `<h1>Dashboard</h1> <h2>Sales</h2> <h3>By Region</h3>`\nWRONG: No `<h1>` on the page, or skipping levels (h1\u2192h3)\nIf a heading should look smaller than its semantic level, use CSS: `<h2 class="text-sm">Subtitle</h2>`\n\n**8. Page Component Landmark Rules** (WCAG 1.3.1, 4.1.2)\nPage components (route components) may be rendered inside a layout that already provides `<main>`, `<header>`, or `<footer>`. Since the layout configuration is unknown, avoid using these landmarks in page components to prevent potential duplication and nesting violations. Use `<div>`, `<section>`, or `<article>` as the top-level wrapper instead.\n- Avoid adding `<main>`, `role="main"`, `<header>`, or `<footer>` in page components \u2014 the layout typically provides them. Duplicating them can cause `landmark-no-duplicate-main` and `landmark-main-is-top-level` violations.\n- Avoid adding `role="banner"` or using a semantic `<header>` element in page components \u2014 the layout\'s `<header>` already claims the banner landmark. Adding another causes `landmark-banner-is-top-level` violations.\n- Avoid adding `role="contentinfo"` to elements inside page components \u2014 the contentinfo landmark should be a top-level landmark, not nested inside `<main>` or other landmarks. Nesting it can cause `landmark-contentinfo-is-top-level` violations.\n- When multiple `<section>` or `<nav>` elements exist on a page, give each a unique `aria-label` to avoid `landmark-unique` violations.\n\n**9. ARIA Role and Attribute Restrictions** (WCAG 4.1.2)\nOnly use ARIA roles that are valid for the given HTML element. Avoid adding `aria-label` or `aria-labelledby` to elements that do not permit naming.\n- `<article>` has an implicit `article` role. Do NOT override it with `role="listitem"`, `role="button"`, `role="link"`, or any other role \u2014 none are allowed on `<article>`. Use `<li>` for list items, `<button>` for interactive cards, or `<a>` for clickable cards instead.\n- `<button>` already has an implicit `button` role. Do NOT add `role="listitem"` or other incompatible roles.\n- `<span>` and `<div>` without roles are generic elements. Do NOT add `aria-label` to them \u2014 it is a prohibited attribute on elements with no accessible role and can cause `aria-prohibited-attr` violations. Instead, use `role="img"` + `aria-label` for visual indicators, or use visually hidden text.\n- Do NOT add `aria-label` to non-interactive `<div>` wrappers \u2014 it has no effect and triggers violations.\n- `aria-pressed` is only valid on elements with `role="button"`, `role="checkbox"`, `role="menuitemcheckbox"`, `role="option"`, `role="radio"`, or `role="switch"`. Do NOT use `aria-pressed` on elements with `role="listitem"` or other roles.\nCORRECT: `<ul role="list"><li class="product-card">...</li></ul>` (listitem inside list)\nCORRECT: `<span role="img" aria-label="Status: pending" class="status-dot"></span>` (role added before aria-label)\nCORRECT: `<span class="status-dot" aria-hidden="true"></span><span class="visually-hidden">Pending</span>` (hidden text alternative)\nWRONG: `<article role="listitem">` (listitem not allowed on article)\nWRONG: `<article role="button">` (button not allowed on article \u2014 use `<button>` or `<div role="button">`)\nWRONG: `<span aria-label="pending" class="status-dot"></span>` (aria-label prohibited on generic span)\nWRONG: `<div aria-label="Product badges" class="badges"></div>` (aria-label prohibited on generic div)\n\n**Quick Checklist:**\n- **Forms:** Associated labels, aria-required on required fields, autocomplete attributes, aria-describedby for errors, aria-invalid for invalid fields, fieldsets with legends\n- **Buttons/Links:** Accessible names, aria-label for icon buttons, aria-hidden on decorative icons, descriptive link text\n- **Popups/Dialogs:** aria-haspopup, aria-expanded, aria-controls, role="dialog", aria-modal="true", aria-labelledby, focus trap, Escape to close\n- **Images:** alt on all images, descriptive alt for informative, empty alt for decorative, aria-describedby for complex\n- **Structure:** One h1, logical heading hierarchy, avoid `<main>`, `<header>`, `<footer>`, `role="main"`, `role="contentinfo"`, `role="banner"` in page/route components (the layout may already provide them), use `<section>` or `<div>` as page-level wrappers, unique aria-labels on duplicate landmark types\n- **ARIA Rules:** Avoid adding `aria-label` to generic `<span>`/`<div>` without a role, avoid using `role="listitem"` or `role="button"` on `<article>` \u2014 use `<li>` for list items, add `role="img"` before `aria-label` on visual indicators, `aria-pressed` only on button-like roles\n- **Scrollable Regions:** Any scrollable container must have `tabindex="0"` or contain keyboard-interactive children\n- **Nested Interactive:** Do not add interactive role/tabindex to a container that already has focusable children\n- **List Roles:** `role="list"` containers must have `role="listitem"` children \u2014 prefer `<ul>/<li>` natively\n- **Dynamic Content:** role="status"/aria-live="polite" for updates, role="alert"/aria-live="assertive" for critical alerts\n- **Keyboard/Focus:** All interactive elements keyboard accessible, logical focus order, visible focus indicators, no keyboard traps (except modals)\n- **Color/Contrast:** 4.5:1 text contrast (3:1 large text), 3:1 UI component contrast, no color-only information, 3:1 focus indicator contrast'}var Ut=1440*60*1e3;function be(e){let{serverName:t,contextApi:o,additionalFields:s={},intervalMs:r=Ut,enrichWithUserData:a=!1}=e,n="mcp_server_heartbeat",l=async()=>{try{let d={server_name:t,timestamp:new Date().toISOString(),...s};await o.logEvent(n,d,{enrichWithUserData:a})}catch(d){C(`Failed to send heartbeat for ${t}:`,d)}};l();let m=setInterval(l,r);return()=>{clearInterval(m),C(`Heartbeat stopped for ${t}`)}}import{z as ee}from"zod";var Pt=["meridian","default","bootstrap","material","fluent"];function ve(e,t){return{projectName:ee.string().default(t).describe("The name of the project. Used as the project folder name when creating a new project."),createNewProject:ee.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:ee.enum(Pt).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 u="Kendo UI for React",U="react",P="kendo";var B=["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 Lt=_t(Dt(Gt(import.meta.url)),"../proto/service.proto"),K=new Y(process.env.CONTEXTAPI_URL,Lt,{libName:U});var Ce=async()=>K.validateUserLicense();import Zt from"fs";import bt from"path";import{fileURLToPath as eo}from"url";import{z as b}from"zod";var S=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 W=e=>{let t=[`1. \`${e.accessibilityAssistantName}\`: Call first with \`includeGeneralGuidelines=true\`; use \`false\` for component-specific follow-ups.`];if(e.includeLayout){let r=e.includeResponsive?"structure, responsive behavior, and UX policy":"structure and UX policy";t.push(`${t.length+1}. \`${e.layoutAssistantName}\`: Get Kendo Design System utilities for the requested ${r}. Use only those utilities for styling and layout.`)}if(e.includeTheming&&t.push(`${t.length+1}. \`${e.styleAssistantName}\`: Generate the requested Kendo theme variables.`),e.includeIcons&&t.push(`${t.length+1}. \`${e.iconAssistantName}\`: Find icons only for the required actions and states.`),e.includeComponentsDocs){let r=e.components?.length?e.components.join(", "):"each Kendo component selected for the implementation";t.push(`${t.length+1}. \`${e.codeAssistantName}\`: Call once per component (${r}) with a concise, feature-specific query before writing Kendo markup.`)}t.push(`${t.length+1}. After each assistant call, use the output to decide how to incorporate the guidance into the feature where applicable.`),t.push(`${t.length+1}. Implement the requested UI using ${e.suiteName} components and the gathered guidance.`),t.push(`${t.length+1}. Run \`npm run build\`, resolve failures, and repeat until it succeeds.`);let 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>
9
+ <workflow-id>${e.workflowId}</workflow-id>
9
10
  <goal>${e.userIntent}</goal>
10
11
  <execution-order>
11
- ${t.map(n=>` ${n}`).join(`
12
+ ${t.map(r=>` ${r}`).join(`
12
13
  `)}
13
14
  </execution-order>
14
15
  <required-invariants>
16
+ - Pass \`workflowId="${e.workflowId}"\` unchanged to every assistant tool call in this plan.
15
17
  - Accessibility guidance is retrieved before implementation; meet WCAG 2.2 Level AA.
16
18
  - Do not generate code until the required tool calls above are complete and their guidance is incorporated.
19
+ - Generate code using tool guidance. Do not inspect \`node_modules\` unless the tools are insufficient and there is conflicting information or runtime errors.
17
20
  - Use focused component queries; do not batch unrelated components.
18
21
  - Build failures block completion and must be fixed before reporting success.
19
- ${o}${r}
22
+ ${o}${s}
20
23
  </required-invariants>
21
24
  <completion>
22
25
  - \`npm run build\` succeeds without errors.
26
+ - Every assistant response is reviewed and relevant guidance is applied.
23
27
  - Required Kendo component, accessibility, layout, and framework-specific requirements are implemented.
24
28
  - Do not report completion while either condition is unresolved.
25
29
  </completion>
26
- </orchestrator-plan>`};var J=e=>{let t=e.components?.length?e.components.join(", "):"each Kendo component selected for the implementation",o=[`1. \`${e.codeAssistantName}\`: Call once per component (${t}) with a concise, feature-specific query before writing Kendo markup.`];return e.includeIcons&&o.push(`${o.length+1}. \`${e.iconAssistantName}\`: Find icons only for the required actions and states.`),o.push(`${o.length+1}. Implement using the gathered ${e.suiteName} documentation.`),o.push(`${o.length+1}. Run \`npm run build\`, resolve failures, and repeat until it succeeds.`),`# ${e.suiteName} Execution Plan
30
+ </orchestrator-plan>`};var te=e=>{let t=e.components?.length?e.components.join(", "):"each Kendo component selected for the implementation",o=[`1. \`${e.codeAssistantName}\`: Call once per component (${t}) with a concise, feature-specific query before writing Kendo markup.`];return e.includeIcons&&o.push(`${o.length+1}. \`${e.iconAssistantName}\`: Find icons only for the required actions and states.`),o.push(`${o.length+1}. Implement using the gathered ${e.suiteName} documentation.`),o.push(`${o.length+1}. Run \`npm run build\`, resolve failures, and repeat until it succeeds.`),`# ${e.suiteName} Execution Plan
27
31
 
28
32
  <assistant-plan>
33
+ <workflow-id>${e.workflowId}</workflow-id>
29
34
  <goal>${e.userIntent}</goal>
30
35
  <execution-order>
31
- ${o.map(r=>` ${r}`).join(`
36
+ ${o.map(s=>` ${s}`).join(`
32
37
  `)}
33
38
  </execution-order>
34
39
  <required-invariants>
40
+ - Pass \`workflowId="${e.workflowId}"\` unchanged to every assistant tool call in this plan.
35
41
  - Build failures block completion and must be fixed before reporting success.
36
42
  - Use the selected components and gathered guidance rather than generic substitutions.
37
43
  </required-invariants>
@@ -39,108 +45,65 @@ ${o.map(r=>` ${r}`).join(`
39
45
  - \`npm run build\` succeeds without errors.
40
46
  - Do not report completion while the build is failing.
41
47
  </completion>
42
- </assistant-plan>`};var $=()=>`## UX/UI Design Best Practices
43
-
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=()=>`
48
+ </assistant-plan>`};var O=()=>`## UX/UI Design Best Practices
49
+
50
+ Follow the constraints and conventions unless the prompt or project defines a stronger convention. Accessibility and WCAG rules always override other guidance.
51
+
52
+ ### Core Constraints
53
+ - Headings: use a strict hierarchy - h1 \u2192 h2 \u2192 h3; never skip levels
54
+ - Use at most 2 typefaces
55
+ - Body text line length: 60-80 characters maximum
56
+ - Contrast: body text \u2265 4.5:1 against its background
57
+ - Large text (\u2265 18pt / 14pt bold) and UI boundaries \u2265 3:1
58
+ - Use only semantic colors: primary, success, warning, error, info
59
+ - Never use color alone to convey status or meaning; pair it with text or an icon
60
+ - Pick one size per form or toolbar: \`"small"\` (24px, data-dense), \`"medium"\` (32px, default), or \`"large"\` (40px, comfortable)
61
+ - Animate transform and opacity, not reflow properties such as width, height, margin, or padding
62
+ - Never set \`outline: none\` globally
63
+ - Icon-only buttons require a visible tooltip and an \`aria-label\`
64
+ - Never show tooltips on disabled elements
65
+ - Do not use placeholder text as a label
66
+ - Button labels must use specific action verbs
67
+ - Error messages must be specific and actionable
68
+ - Grid headers use Title Case, not ALL CAPS
69
+ - Empty states must explain why they are empty and offer a next action
70
+ - Right-align numeric and currency grid columns
71
+ - Format dates for the locale; never show raw ISO 8601 strings
72
+ - Give every grid column an explicit width
73
+ - Dialogs must support Escape to close and include a clearly labeled close control
74
+ - Destructive dialog actions use the error theme color
75
+ - Show field validation after first blur, not on initial render or every keystroke
76
+ - Display field error text directly below the field
77
+ - Required fields use an asterisk (*) plus a legend. Mark optional fields only when most fields are required
78
+ - Do not render more than 200 grid rows without pagination or virtual scrolling
79
+ - Support \`prefers-reduced-motion: reduce\` \u2014 set transition durations to \u2264 0.01ms in that media query
80
+
81
+ ### Default Conventions
82
+ - Breakpoints: Mobile < 640px | Tablet 640-1024px | Desktop 1024-1440px | Wide > 1440px
83
+ - Wide layouts: max width 1440px and centered
84
+ - On screens under 480px, grids switch to stacked or card layout
85
+ - Loading: Skeleton for content areas, overlay + ProgressBar for blocking operations, disabled button + inline spinner for async submission
86
+ - Error recovery: inline for form fields, toast/notification for API or system errors
87
+ - Virtual scrolling fits very large datasets where users scroll continuously rather than jump between pages
88
+ - Paging defaults: 25 rows with options 10, 25, 50
89
+ - Prefer single-column forms. Use two columns only for tightly related field pairs
90
+ - For complex forms, place labels above fields. Inline labels fit only very short forms
91
+ - Place the primary action at the bottom left and secondary actions to its right
92
+ - 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
93
+ - Animations on micro-interactions (button press, tooltip): 150-250ms. Panel transitions (drawer, sidebar): 300-400ms
94
+
95
+ ### Chart Selection
96
+ - Line or Area: continuous quantitative data over time (trends, rates)
97
+ - Bar (vertical): discrete time periods or ordered categories
98
+ - Bar (horizontal): comparing named categories (rankings, survey results)
99
+ - Donut (not Pie): part-to-whole proportions with \u2264 6 segments. Prefer Donut over Pie charts
100
+
101
+ ### Avoid
102
+ - 3D charts, dual-axis charts, and charts with more than 7 series
103
+
104
+ ### Dialog vs Window
105
+ - Dialog: blocking choice or confirmation; title should be action-oriented
106
+ - Window: non-modal content that can stay alongside the background(resizable/draggable panels, editors)`;var oe=()=>`
144
107
  **REQUIRED ACTIONS \u2014 apply all fixes directly to the source files:**
145
108
  - 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
109
  - 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,91 +116,75 @@ When no design token system is defined by the project, apply these minimum spaci
153
116
  **OUTPUT REQUIREMENTS:**
154
117
  - For each file you change, briefly describe what was wrong and what fix you applied
155
118
  - 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
119
+ - If all automated changes look correct and no further fixes are needed, explicitly confirm this`;import{execFile as Ot}from"child_process";import{access as Mt}from"fs/promises";import{promisify as qt}from"util";import{randomUUID as se}from"node:crypto";var ke="progress.com/kendo-ui-workflow-session-id";function Ae(e){return typeof e=="string"&&e.length>0&&e.length<200&&/^[\x20-\x7e]+$/.test(e)}var we=900*1e3;function xe(){return{sessionId:se(),expiresAt:Date.now()+we}}var V=xe();function $t(){return Date.now()>=V.expiresAt&&(V=xe()),V}function Se(e){let t=e._meta?.[ke],s=t!==void 0&&!Ae(t);return Ae(t)?{sessionId:t,sessionSource:"semantic",explicitSessionIdRejected:!1}:{sessionId:$t().sessionId,sessionSource:"fallback",explicitSessionIdRejected:s}}function Ie(e,t){return{langfuseSessionId:e.sessionId,toolInvocationId:se(),mcpToolName:t,workflowSessionSource:e.sessionSource,workflowSessionExplicitIdRejected:e.explicitSessionIdRejected}}function M(e,t,o){let s=o?{...e,_meta:{...e._meta,[ke]:o}}:e;return Ie(Se(s),t)}function re(e,t){let o=Se(e),s=o.sessionSource==="semantic"?o:{sessionId:se(),sessionSource:"fallback",explicitSessionIdRejected:o.explicitSessionIdRejected};return s.sessionSource==="fallback"&&(V={sessionId:s.sessionId,expiresAt:Date.now()+we}),{metadata:Ie(s,t)}}var Te=qt(Ot);function Ft(e,t){let o;try{o=JSON.parse(e)}catch{return e}let s=o?.Item;if(!s)return e;let r=[],a=s.FullName??s.Name??"",n=s.Type??"",l=s.Summary??"",m=s.SyntaxContent??"";r.push(`## API Reference Item
157
120
  - Name: ${a}
158
- - Type: ${s}
159
- - 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}
121
+ - Type: ${n}
122
+ - Summary: ${l}
123
+ - Syntax: ${m}`);let d=o.RelatedItemsByType?.return_type;if(d?.length){let i=d[0].Text;i&&r.push(`- Return Type: ${i}`)}let h=s.Examples??[];if(h.length>0){let i=`## Examples
124
+ `,c=0;for(let y of h){let f=(y.Component??"").toLowerCase(),p=t.toLowerCase();if(f&&f!==p&&f!=="general")continue;c+=1;let k=y.Code??"";i+=`### Example ${c}
162
125
  \`\`\`
163
- ${w}
126
+ ${k}
164
127
  \`\`\`
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(`
128
+ `}c>0&&r.push(i)}let v=o.RelatedItemsByType??{},g=[];for(let[i,c]of Object.entries(v))if(!(i==="return_type"||i==="render_fragment"))for(let y of c??[]){let f=y.FullName??"",p=y.ShortText??"";g.push(`### ${f} (${i})
129
+ ${p}`)}return g.length>0&&r.push(`## Additional Context
130
+ `+g.join(`
168
131
  ---
169
- `)),n.join(`
132
+ `)),r.join(`
170
133
 
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}
134
+ `)}function Ne(e,t){let{name:o,title:s,description:r,layoutAssistantName:a,codeAssistantName:n,styleAssistantName:l,iconAssistantName:m,accessibilityAssistantName:d,suiteName:h,libKey:v,components:g}=e,i=new S(o,{title:s,description:r,requiredAccess:e.requiredAccess,inputSchema:{userIntent:b.string().describe(`Detailed description and intent of what the user wants to build. Include the type of page/component, main functionality, visual requirements, and any specific ${h} components you want to use.`),needsComponentsDocsConfidence:b.number().min(0).max(1).default(1).describe("Confidence (0-1) to include Component Documentation assistance. Default is 1."),needsLayoutConfidence:b.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Layout assistance. Default is 0."),needsStylingConfidence:b.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Theming/Styling assistance. Default is 0."),needsResponsiveBehaviorConfidence:b.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Responsive Behavior assistance. Default is 0."),needsIconsConfidence:b.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Icons assistance. Default is 0."),componentsNeeded:b.array(b.enum(g)).optional().describe(`Optional list of specific ${h} components needed for the project.`)}},async({userIntent:c,needsComponentsDocsConfidence:y,needsLayoutConfidence:f,needsStylingConfidence:p,needsResponsiveBehaviorConfidence:k,needsIconsConfidence:x,componentsNeeded:G},R)=>{let T=re(R,o),ie={...I(i,R._meta),...T.metadata};C("UI Orchestrator called with:",{userIntent:c,needsComponentsDocsConfidence:y,needsLayoutConfidence:f,needsStylingConfidence:p,needsResponsiveBehaviorConfidence:k,needsIconsConfidence:x});let N={componentsDocs:y>.3,layout:f>.5,theming:p>.6,responsive:f>.5&&k>.4,icons:x>.6};try{await t.recordOrchestratorUserRequest({meta:{...ie,userIntent:c,componentsNeeded:G,confidence:{componentsDocs:y,layout:f,styling:p,responsive:k,icons:x},routing:N}})}catch(L){if(!Le(L))throw _(L);C("Unable to record UI orchestrator trace metadata:",L)}let E=i.server?.server.getClientCapabilities?.()?.elicitation,j;if(E&&p>.3&&p<=.6){let L=await i.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&&(j=!0)}return{content:[{type:"text",text:W({name:o,workflowId:T.metadata.langfuseSessionId,userIntent:c,includeComponentsDocs:y>.3,includeTheming:p>.6||!!j,includeLayout:f>.5,includeIcons:x>.6,includeResponsive:f>.5&&k>.4,layoutAssistantName:a,codeAssistantName:n,styleAssistantName:l,iconAssistantName:m,accessibilityAssistantName:d,suiteName:h,libKey:v,components:G})}]}});return i}function Ee(e,t){let{name:o,title:s,description:r,iconAssistantName:a,codeAssistantName:n,suiteName:l,libKey:m,components:d}=e,h=new S(o,{title:s,description:r,inputSchema:{userIntent:b.string().describe(`Describe what you want to build or what components you're looking for. Include the type of functionality, features, or UI elements you need from ${l}.`),needsIconsConfidence:b.number().min(0).max(1).default(.7).describe("Confidence (0-1) to include Icons assistance. Default is 0.7."),componentsNeeded:b.array(b.enum(d)).optional().describe(`Optional list of specific ${l} components you want to learn about.`)},requiredAccess:e.requiredAccess},async({userIntent:v,needsIconsConfidence:g,componentsNeeded:i},c)=>{let y=re(c,o),f={...I(h,c._meta),...y.metadata};C("Assistant Orchestrator called with:",{userIntent:v,needsIconsConfidence:g,componentsNeeded:i});let p={componentsDocs:!0,icons:g>.5};try{await t.recordOrchestratorUserRequest({meta:{...f,userIntent:v,componentsNeeded:i,confidence:{icons:g},routing:p}})}catch(x){if(!Le(x))throw _(x);C("Unable to record assistant orchestrator trace metadata:",x)}return{content:[{type:"text",text:te({name:o,workflowId:y.metadata.langfuseSessionId,userIntent:v,includeComponentsDocs:!0,includeIcons:g>.5,codeAssistantName:n,iconAssistantName:a,suiteName:l,libKey:m,components:i})}]}});return h}function Ue(e,t){let{name:o,title:s,description:r,getPreContent:a}=e,n=new S(o,{title:s,description:r,requiredAccess:e.requiredAccess,inputSchema:{workflowId:b.string().optional().describe("Workflow ID returned by the UI orchestrator. Pass it unchanged to associate this call with that orchestrator."),prompt:b.string().describe("An enhanced prompt describing the HTML layout structure, design requirements or specific visual effects you want to achieve.")}},async({workflowId:l,prompt:m},d)=>{let h={...I(n,d._meta),...M(d,o,l)};C("Layout Assistant called with:",{prompt:m});try{let g=(await t.queryCssUtils({query:m},{...h})).values.join(`
135
+ `)||"No CSS utilities found for the given prompt.";return g=`${a?.()??""}
173
136
 
174
137
  # Kendo Design System CSS Utilities
175
138
 
176
- ${m}
177
- ${f??""}
178
- `;if(g)try{let f=await t.queryBuildingBlocks({query:p,lib_name:s},{...h}),w="";f.items?.length>0&&(w=`
179
- ## Building Blocks Examples
139
+ ${g}
140
+ `,{content:[{type:"text",text:g}]}}catch(v){throw _(v)}});return n}function Pe(e,t){let{name:o,title:s,description:r,libKey:a,getPreContent:n}=e,l=new S(o,{title:s,description:r,requiredAccess:e.requiredAccess,inputSchema:{workflowId:b.string().optional().describe("Workflow ID returned by the UI orchestrator. Pass it unchanged to associate this call with that orchestrator."),prompt:b.string().describe("A natural language description of the desired visual style or theme. For example: 'Create a modern dark theme with high contrast'.")}},async({workflowId:m,prompt:d},h)=>{let v={...I(l,h._meta),...M(h,o,m)};C("Style Assistant called with:",{prompt:d});let g="";try{let y=await t.queryThemeGenerate({prompt:d},{...v});if(y.variables_json){let f=JSON.parse(y.variables_json),p=[];if(f)for(let k of Object.keys(f))typeof f[k]=="string"&&p.push(`${k}: ${f[k]}`);g=p.join(`
180
141
 
181
- The examples here are for demonstration purpose how CSS utils can be implemented in various building blocks.
182
- However, consider your own design requirements and specifics in order to implement your templates/building blocks correctly.
183
-
184
- ${f.items.map(S=>`
185
- ### ${S.name}
186
-
187
- ${S.description}
188
-
189
- \`\`\`code
190
- ${S.code}
191
- \`\`\`
192
- `).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(`
194
-
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.
142
+ `)}}catch(y){throw _(y)}let i=n?.()??"";return{content:[{type:"text",text:g?`Use the following CSS variables to style the web application, including colors, typography, spacing, and component appearance.
196
143
  Ensure the variables are applied consistently across all relevant elements.
197
144
  Do NOT set any inline styles. CSS variables should be defined in global or component-level CSS files, or via supported theming mechanisms.
198
145
 
199
- ${h}
146
+ ${i}
200
147
 
201
148
  ## Generated CSS Variables
202
149
 
203
150
  \`\`\`css
204
- ${C}
151
+ ${g}
205
152
  \`\`\`
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(`
153
+ `:"No CSS variables were generated for the given prompt."}]}});return l}function De(e,t){let{name:o,title:s,description:r,libKey:a,getPostContent:n}=e,l=new S(o,{title:s,description:r,requiredAccess:e.requiredAccess,inputSchema:{workflowId:b.string().optional().describe("Workflow ID returned by the UI orchestrator. Pass it unchanged to associate this call with that orchestrator."),query:b.string().describe("A search query for finding icons. Be specific about the icon purpose, style, or action."),limit:b.number().min(.1).max(1).default(.1).describe("The proportion of matching icons to return (0.1 = 1 icon, 0.5 = 5 icons, 1.0 = many icons). Default is 0.1.")}},async({workflowId:m,query:d,limit:h},v)=>{let g={...I(l,v._meta),...M(v,o,m)};C("Icon Search called with:",{query:d,limit:h});try{let i=await t.queryIconsSearch({query:d,limit:h*100},{...g}),c=n?.()??"";return{content:[{type:"text",text:`${i.values.join(`
207
154
 
208
155
  `)}
209
156
 
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(`
157
+ ${c}`}]}}catch(i){throw _(i)}});return l}function _e(e,t){let{name:o,title:s,description:r,libKey:a,suiteName:n,components:l,componentAliases:m,getPostContent:d}=e,h=new S(o,{title:s,description:r,requiredAccess:e.requiredAccess,inputSchema:{workflowId:b.string().optional().describe("Workflow ID returned by the UI orchestrator. Pass it unchanged to associate this call with that orchestrator."),query:b.string().describe("The query to search for."),component:b.enum(l).describe("The component to search for. If not specified, use General.")}},async({workflowId:v,query:g,component:i},c)=>{let y={...I(h,c._meta),...M(c,o,v)};C("Code Assistant called with:",{query:g,component:i});let f=i;if(m){let p=m[i];p&&(f=p)}try{let k=(await t.query({query:g,component:f?.toLowerCase()??"general",lib_name:a,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]},{...y})).values.map(R=>R.replace(/\0/g,"")),x=d?.({component:i})??"";return{content:[{type:"text",text:`${k.join(`
211
158
 
212
159
  `)}
213
160
 
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
161
+ ${x}`}]}}catch(p){throw _(p)}});return h}function Ge(e,t){let{name:o,title:s,description:r,libKey:a,suiteName:n,components:l,componentAliases:m}=e,d=new S(o,{title:s,description:r,requiredAccess:e.requiredAccess,inputSchema:{workflowId:b.string().optional().describe("Workflow ID returned by the UI orchestrator. Pass it unchanged to associate this call with that orchestrator."),query:b.string().describe("The query to search for."),component:b.enum(l).describe("The component to search for. If not specified, use General."),includeGeneralGuidelines:b.boolean().default(!1).describe("Set to true only on the first call to include comprehensive WCAG 2.2 Level AA general guidelines. After the first call, set to false to get only component-specific accessibility information. Default is false.")}},async({workflowId:h,query:v,component:g,includeGeneralGuidelines:i},c)=>{let y={...I(d,c._meta),...M(c,o,h)};C("Accessibility Assistant called with:",{query:v,component:g,includeGeneralGuidelines:i});let f=g;if(m){let p=m[g];p&&(f=p)}try{let p="";if(i){let T=ye();p+=`# WCAG 2.2 Level AA General Accessibility Guidelines
215
162
 
216
- `,c+=N,c+=`
163
+ `,p+=T,p+=`
217
164
 
218
165
  ---
219
166
 
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(`
167
+ `}let R=(await t.getApiRefMatches({query:v,component:f?.toLowerCase()??"general",lib_name:a,filters_json:'{"type":{"$in":["accessibility"]}}'},{...y})).values.map(T=>T.replace(/\0/g,"")).map(T=>Ft(T,f?.toLowerCase()??"general")).join(`
221
168
 
222
- `);return R?(h&&(c+=`# Component-Specific Accessibility Information
169
+ `);return R?(i&&(p+=`# Component-Specific Accessibility Information
223
170
 
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.
171
+ `),p+=R):i||(p="No component-specific accessibility guidelines found."),{content:[{type:"text",text:p}]}}catch(p){throw _(p)}});return d}function Le(e){let t=e?.code;return typeof t=="number"&&t!==16&&t!==7&&t!==8}function _(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
172
 
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.
173
+ Error Code: ${t.code} Error Message: ${t.message}`)}var Bt=20*1024*1024,$e=1200*1e3;function Re(e){return{content:[{type:"text",text:`Upgrade timed out after ${$e/6e4} minutes.
227
174
 
228
175
  **Some codemods may have already been applied to your files.** Review any modified files before proceeding.
229
176
 
230
177
  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
178
 
232
179
  ## 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(`
180
+ `+e:""}`}]}}function Oe(e,t){let{name:o,title:s,description:r,suiteName:a,packagePrefix:n}=e,l=new S(o,{title:s,description:r,requiredAccess:e.requiredAccess,inputSchema:{workingDirectory:b.string().describe('The absolute path to the project directory where the upgrade should be executed (e.g., "/Users/username/my-app")'),packageNames:b.array(b.string()).optional().describe(`The package names to target for codemod upgrade (e.g., ["${n}grid", "${n}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:b.boolean().optional().describe("Skip npm package installation and only run codemods. Use this when package installation has already been done manually.")}},async({workingDirectory:m,packageNames:d,skipInstall:h},{_meta:v})=>{let g=I(l,v);try{await t.recordToolUserRequest({toolName:o,meta:g})}catch(i){console.error("Error recording tool request:",i)}try{try{await Mt(m)}catch{return{content:[{type:"text",text:`The working directory does not exist: "${m}". Please provide a valid absolute path to your project.`}]}}let i=!1;try{await Te("npx",["--no","--","kendo","--version"],{cwd:m}),i=!0}catch{i=!1}let c=[],y=async(N,le=!1)=>{try{let E=!le&&i?["--no","--","kendo",...N]:["-y","@progress/kendo-cli",...N],{stdout:j,stderr:ce}=await Te("npx",E,{cwd:m,maxBuffer:Bt,timeout:$e});return{timedOut:!1,stdout:j,stderr:ce}}catch(E){return E.killed?{timedOut:!0,partialOutput:E.stdout?.trim()}:{timedOut:!1,stdout:E.stdout||"",stderr:E.stderr||E.message}}},f=["migrate",...d??[],"--codemods","--force","--ai-mode"];(h||d?.length)&&f.push("--no-install");let p=await y(f);if(p.timedOut)return Re(p.partialOutput);let k=p.stdout,x=p.stderr;if(x?.includes("Unknown argument")){let N=await y(f,!0);if(N.timedOut)return Re(N.partialOutput);k=N.stdout,x=N.stderr}x?.trim()&&c.push(`
234
181
  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(`
182
+ ${x}`),k?.trim()&&c.push(k.trim());let G=k.includes("Packages installed successfully."),R=k.includes("Package installation failed:"),T=k.includes("Running codemod:");return R?c.push(`
236
183
  ## Upgrade Status
237
- 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(`
184
+ 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.`):G&&c.push(`
238
185
  ## Upgrade Status
239
- 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.
186
+ Upgrade complete. npm packages have been installed and updated in the project.`),T&&c.push(oe()),{content:[{type:"text",text:c.join(`
187
+ `)}]}}catch(i){return{content:[{type:"text",text:`Error: ${i.message||i.toString()}`}]}}});return l}var Me=e=>`${e}_ui_generator`,qe=e=>`${e}_assistant`,Fe=e=>`${e}_layout_assistant`,Be=e=>`${e}_component_assistant`,Ke=e=>`${e}_style_assistant`,We=e=>`${e}_icon_assistant`,je=e=>`${e}_accessibility_assistant`,He=e=>`${e}_getting_started_assistant`,Ye=e=>`${e}_upgrade_assistant`;var Ve=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
188
 
242
189
  Use the tool when:
243
190
  - Want to build or modify a complete page or section layout
@@ -246,7 +193,7 @@ Upgrade complete. npm packages have been installed and updated in the project.`)
246
193
  - You want to enforce best practices in styling, performance, and accessibility
247
194
 
248
195
  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.
196
+ A detailed execution plan with validated tool calls, parameters, and reasoning \u2014 ensuring consistent, high-quality UI generation.`,ze=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
197
 
251
198
  Use this tool when:
252
199
  - You need to discover which ${e} components are suitable for a specific use case
@@ -255,20 +202,20 @@ Use this tool when:
255
202
  - You want to gather component documentation and examples
256
203
 
257
204
  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.
205
+ A focused plan for gathering component documentation and icon suggestions using the Component Assistant and Icon Assistant tools.`,Xe=`Retrieves Progress/Kendo Design System CSS utility classes and styling recommendations based on layout and design requirements.
259
206
  Use this tool to find the right CSS utilities for styling Kendo UI components or general web elements.
260
207
  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.
208
+ 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.
262
209
 
263
210
  Use this tool when the user wants to:
264
211
  - Update the visual theme of an application
265
212
  - Modify color schemes
266
213
  - Restyle the UI with CSS variables
267
214
 
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.
215
+ The tool outputs a set of CSS variable definitions ready to be applied to style files.`,Je=`Searches for icons in the Telerik Icons library.
269
216
  Use this tool when the user needs to find specific icons for UI components or design elements.
270
217
  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}.
218
+ `,Ze=e=>`Provides answers and retrieves official documentation for ${e}.
272
219
 
273
220
  Use this tool when the user asks about:
274
221
  - ${e} features or capabilities
@@ -278,7 +225,7 @@ Use this tool when the user asks about:
278
225
 
279
226
  Set the user's full question as the 'query' parameter.
280
227
  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.
228
+ `,et=e=>`Retrieves accessibility guidance for ${e} components with optional general WCAG 2.2 Level AA guidelines.
282
229
 
283
230
  Use this tool when:
284
231
  - You need component-specific accessibility information and API references
@@ -296,7 +243,7 @@ Set 'includeGeneralGuidelines=true' ONLY on the first call to include general WC
296
243
  Returns:
297
244
  - When includeGeneralGuidelines=true: General WCAG 2.2 Level AA guidelines + component-specific recommendations
298
245
  - 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.
246
+ `,tt=(e,t)=>`Runs codemods to upgrade ${e} code from one version directly to another using @progress/kendo-cli.
300
247
 
301
248
  To upgrade to the latest version, call this tool directly. It handles installation automatically.
302
249
 
@@ -321,112 +268,36 @@ Workflow:
321
268
  1. Run this upgrade tool to apply codemods.
322
269
  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
270
  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
-
271
+ `;var Kt={createOrchestrator:Ne,createAssistantOrchestrator:Ee,createLayoutAssistant:Ue,createStyleAssistant:Pe,createIconSearch:De,createCodeAssistant:_e,createAccessibilityAssistant:Ge,createUpgrade:Oe},Wt={orchestrator:Me,assistantOrchestrator:qe,layoutAssistant:Fe,codeAssistant:Be,styleAssistant:Ke,iconAssistant:We,accessibilityAssistant:je,gettingStartedAssistant:He,upgradeAssistant:Ye},jt={orchestrator:Ve,assistantOrchestrator:ze,layoutAssistant:Xe,styleAssistant:Qe,iconAssistant:Je,codeAssistant:Ze,accessibilityAssistant:et,upgradeAssistant:tt},Ht={Orchestrator:{render:W},UX:{getInstructions:O}},A={Tools:Kt,ToolNames:Wt,ToolDescriptions:jt,Templates:Ht};var ot=()=>`# Kendo Design System Guidelines for ${u}
326
272
  ## 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.
273
+ Include a reference to the kendo-theme-utils CSS package and use the same import mechanism as the existing Kendo theme.
332
274
 
333
275
  ### Using NPM
334
-
335
- The CSS Utilities are available as an NPM module that you can install - \`@progress/kendo-theme-utils\`
336
-
337
276
  To install: \`npm install --save @progress/kendo-theme-utils\`
338
277
 
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
344
-
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.
354
-
355
- - ${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.
359
-
360
- ## Page Shell Patterns
361
-
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
- \`\`\`
278
+ Also available as SCSS - \`@use '@progress/kendo-theme-utils/scss/all.scss' as *;\`
279
+ Alternatively, use CDN: \`<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-utils/dist/all.css" />\`
418
280
 
419
- ## Critical Sizing Rules
281
+ ### Default Behavior
282
+ - Use the Kendo Design System utilities for layout.
283
+ - Use theme utility classes instead of custom CSS whenever a utility exists. Write custom CSS only for properties without a utility equivalent.
284
+ - Do not use overrides for Kendo internals when a utility or component configuration can express the rule.
285
+ - Prioritize using ${u} components instead of building ones from scratch.
420
286
 
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.
287
+ - ${u} Card component.
288
+ - Generally use 100% width (e.g., \`<Card style={{ width: '100%' }}>\`)
289
+ - Or set width based on the layout requirements (e.g., \`<Card style={{ width: '150px' }}>\`)
426
290
 
427
- ## Dark Theme Completeness
291
+ - **\`min-width: 0\`** on every flex/grid child that contains a Kendo component.
292
+ - Grid and Chart require an explicit height.
293
+ - Grid columns require an explicit width.
294
+ - Custom cards and containers must use \`var(--kendo-component-bg)\` for their background.
295
+ - 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.
296
+ - Avoid \`transform\` on layout ancestors that contain Kendo overlay components.
297
+ - 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.
298
+ - By default constrain page content to \`max-width: 1440px\` with \`margin: 0 auto\` to prevent unbounded wide-screen stretching.
428
299
 
429
- Kendo themes style \`.k-*\` component selectors only. Always add these two lines to your global CSS file after any theme import:
300
+ Always add to the global CSS file after any theme import:
430
301
 
431
302
  \`\`\`css
432
303
  html, body {
@@ -435,30 +306,13 @@ html, body {
435
306
  }
436
307
  \`\`\`
437
308
 
438
- Without this, dark-themed components render on a white page.
439
-
440
309
  ## 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
310
+ Use only the four surface levels defined by the Kendo themes
311
+ 1. Page background (\`var(--kendo-body-bg)\`) \u2014 applied to \`html, body\`
312
+ 2. Component background (\`var(--kendo-component-bg)\`) \u2014 cards, panels, Grid body
313
+ 3. Header / hover surface (\`var(--kendo-grid-header-bg)\`) \u2014 Grid headers, highlighted rows
314
+ 4. Active / selected surface \u2014 managed by the theme automatically
315
+ `;var st=()=>`## Design Standards for ${u} Theming
462
316
 
463
317
  ### Color & Contrast Requirements
464
318
  - Body text contrast: \u2265 4.5:1. Large text / UI component borders: \u2265 3:1.
@@ -496,7 +350,7 @@ This is the most common source of dark mode breakage in custom UI.
496
350
 
497
351
  ---
498
352
 
499
- ## Applying CSS Variables in ${d}
353
+ ## Applying CSS Variables in ${u}
500
354
 
501
355
  Apply these CSS variables in the React application using one of these methods:
502
356
 
@@ -585,7 +439,16 @@ export function ThemeProvider({ children }: { children: React.ReactNode }) {
585
439
 
586
440
  export const useTheme = () => useContext(ThemeContext);
587
441
  \`\`\`
588
- `;var We=y.ToolNames.codeAssistant("kendoreact"),He=()=>`## Using ${d} Icons
442
+ `;var rt=A.ToolNames.codeAssistant("kendoreact"),nt=()=>`### SVG Icon Export Names
443
+
444
+ For an icon listed above, map its listed value to the SVG export from \`@progress/kendo-svg-icons\` as follows:
445
+ 1. Append \`-icon\` to the listed value.
446
+ 2. Convert the result from kebab case to camel case.
447
+
448
+ ### Font Icon Class Names
449
+ Prepend \`k-i-\` to the listed value to form the font icon CSS class name. Keep the value in kebab case.
450
+
451
+ ## Using ${u} Icons
589
452
 
590
453
  Important: Attempt to prioritize SVG icons over font icons.
591
454
 
@@ -593,13 +456,13 @@ Important: Attempt to prioritize SVG icons over font icons.
593
456
 
594
457
  - Make sure @progress/kendo-svg-icons is installed: \`npm install @progress/kendo-svg-icons\`
595
458
  - 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.
459
+ - You can call ${rt} tool for ${u} SvgIcon component for docs and API reference.
597
460
  - [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.
461
+ - [optional] If using font icons you can call ${rt} tool for ${u} Icon component for docs and API reference.
599
462
 
600
463
  ### Examples
601
464
 
602
- Using ${d} SvgIcon component with @progress/kendo-svg-icons:
465
+ Using ${u} SvgIcon component with @progress/kendo-svg-icons:
603
466
 
604
467
  \`\`\`tsx
605
468
  import { SvgIcon } from "@progress/kendo-react-common";
@@ -643,10 +506,10 @@ Here are some frequently used icons from @progress/kendo-svg-icons:
643
506
  - \`sortAscIcon\`, \`sortDescIcon\` - Sorting
644
507
  - \`chevronUpIcon\`, \`chevronDownIcon\`, \`chevronLeftIcon\`, \`chevronRightIcon\` - Navigation
645
508
  - \`checkIcon\`, \`xIcon\` - Confirmation/Cancel
646
- `;var ze=e=>{let t=`## ${d} Implementation Rules
509
+ `;var at=e=>{let t=`## ${u} Implementation Rules
647
510
 
648
- - Follow the project's existing React and ${d} setup; use function components and Hooks for new code.
649
- - 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.
511
+ - Follow the project's existing React and ${u} setup; use function components and Hooks for new code.
512
+ - Before using a component, confirm its required ${u} package is already declared in the project. Install only missing, required packages using the project's approved package-management workflow.
650
513
  - Keep imports named, minimal, and limited to packages and subcomponents actually used. Do not use side-effect imports or leave unused imports.
651
514
  - Compile under strict TypeScript: define source-data types; type component events, render callbacks, and handlers with exported types; do not use \`any\` or unsafe casts.
652
515
  - Keep data flow predictable and render a graceful empty state for invalid or empty data.
@@ -654,7 +517,7 @@ Here are some frequently used icons from @progress/kendo-svg-icons:
654
517
  ## Component-Specific Guidelines
655
518
 
656
519
  ${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
520
+ `),t};var Yt={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"},Vt={meridian:"Meridian",default:"Default",bootstrap:"Bootstrap",material:"Material Design",fluent:"Fluent UI"};function it(e="kendo-react-app",t=!0,o="meridian"){let s=Yt[o],r=Vt[o],a=t?`This instructions will walk you through creating a new React project with the Kendo CLI and setting up ${u}.`:`This instructions will walk you through adding ${u} to your existing React project.`,n=1,l=t?`## Step ${n++}: Ensure Kendo CLI is Installed
658
521
 
659
522
  First, ensure the Kendo CLI tool is installed globally:
660
523
 
@@ -664,7 +527,7 @@ npm i -g @progress/kendo-cli@latest
664
527
 
665
528
  This CLI tool will handle the entire project setup including all necessary dependencies and configurations.
666
529
 
667
- ## Step ${s++}: Create the Project
530
+ ## Step ${n++}: Create the Project
668
531
 
669
532
  Create a new Kendo React project using the CLI:
670
533
 
@@ -673,7 +536,7 @@ npx kendo react create vite ${e} --theme=${o}
673
536
  \`\`\`
674
537
 
675
538
  This command will create a complete Kendo React project with Vite, including:
676
- - All necessary ${d} packages
539
+ - All necessary ${u} packages
677
540
  - Proper licensing configuration
678
541
  - Theme setup
679
542
  - Project structure
@@ -684,30 +547,30 @@ Navigate to the project directory:
684
547
  cd ${e}
685
548
  \`\`\`
686
549
 
687
- ## Step ${s++}: Remove Dark Color Schema from index.css
550
+ ## Step ${n++}: Remove Dark Color Schema from index.css
688
551
 
689
552
  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
553
 
691
- `:"",l=t?"":`## Step ${s++}: Install ${d} Packages
554
+ `:"",m=t?"":`## Step ${n++}: Install ${u} Packages
692
555
 
693
- Install all required ${d} packages and dependencies:
556
+ Install all required ${u} packages and dependencies:
694
557
 
695
558
  \`\`\`bash
696
559
  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
560
  \`\`\`
698
561
 
699
- ## Step ${s++}: Install and Import the Theme
562
+ ## Step ${n++}: Install and Import the Theme
700
563
 
701
- Install the ${n} theme package:
564
+ Install the ${r} theme package:
702
565
 
703
566
  \`\`\`bash
704
- npm i ${r}
567
+ npm i ${s}
705
568
  \`\`\`
706
569
 
707
570
  Import the CSS file in your \`src/Home.tsx\` (before your existing Home.css import):
708
571
 
709
572
  \`\`\`typescript
710
- import '${r}/dist/all.css';
573
+ import '${s}/dist/all.css';
711
574
  \`\`\`
712
575
 
713
576
  Also add the Kendo CSS utilities CDN link in your \`index.html\` \`<head>\`:
@@ -716,7 +579,7 @@ Also add the Kendo CSS utilities CDN link in your \`index.html\` \`<head>\`:
716
579
  <link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-utils/dist/all.css" />
717
580
  \`\`\`
718
581
 
719
- `,p=`## Step ${s++}: Activate Kendo License
582
+ `,d=`## Step ${n++}: Activate Kendo License
720
583
 
721
584
  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
585
 
@@ -724,7 +587,7 @@ This step is required to use Kendo React components without watermarks and with
724
587
  npx kendo license activate
725
588
  \`\`\`
726
589
 
727
- `;return`# Getting Started with ${d}
590
+ `;return`# Getting Started with ${u}
728
591
 
729
592
  ${a}
730
593
 
@@ -737,7 +600,7 @@ Before you begin, ensure you have:
737
600
  - **Node.js 18 or later** installed on your machine
738
601
  - 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
602
 
740
- ${i}${l}${p}## Step ${s++}: Run Your Application
603
+ ${l}${m}${d}## Step ${n++}: Run Your Application
741
604
 
742
605
  ${t?"The Kendo CLI has set up everything you need. Start the development server:":"Build and run the application:"}
743
606
 
@@ -748,13 +611,13 @@ ${t?"The Kendo CLI has set up everything you need. Start the development server:
748
611
  cd ${t?e:"."} && npm run dev
749
612
  \`\`\`
750
613
 
751
- ${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.`}
614
+ ${t?`The application should start and open your browser to see your ${u} application.`:`The application should start and open in your browser. Verify that the ${u} components are rendering correctly with the theme applied.`}
752
615
 
753
- ## Step ${s++}: Create Sample page
616
+ ## Step ${n++}: Create Sample page
754
617
 
755
618
  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
619
 
757
- Replace the content of \`src/Home.tsx\` with the following to showcase ${d} features and verify components are working correctly:
620
+ Replace the content of \`src/Home.tsx\` with the following to showcase ${u} features and verify components are working correctly:
758
621
 
759
622
  \`\`\`tsx
760
623
  import { Card, CardHeader, CardTitle, CardBody } from '@progress/kendo-react-layout';
@@ -875,7 +738,7 @@ Add the following styles to \`src/Home.css\`:
875
738
  }
876
739
  \`\`\`
877
740
 
878
- `}var Ve=`
741
+ `}var lt=`
879
742
  ## KendoReact Chart Reliability Instructions
880
743
  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
744
 
@@ -1017,9 +880,9 @@ const pieLabel = (e: { category?: string; percentage?: number }) =>
1017
880
 
1018
881
  ### 11. Expected output behavior
1019
882
  - 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:
883
+ `;var ct=`
884
+ ## Grid Deprecated Properties Awareness
885
+ 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
886
 
1024
887
  Deprecated properties and their modern replacements:
1025
888
  - selectedField \u2192 use the select state property
@@ -1041,15 +904,15 @@ Additional modern updates:
1041
904
  - Virtual scrolling no longer applies height by default
1042
905
 
1043
906
  Key points:
1044
- - Never suggest or use these deprecated properties in DataGrid examples
907
+ - Never suggest or use these deprecated properties in Grid examples
1045
908
  - Always provide modern alternatives when users ask about these properties
1046
909
  - 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
910
+ - Focus on current Grid API patterns using state properties and cells/rows props
1048
911
 
1049
912
  Example:
1050
913
  Deprecated: selectedField="isSelected" editField="inEdit"
1051
914
  Modern: Use select and edit state properties with proper configuration
1052
- `;var Xe=`
915
+ `;var dt=`
1053
916
  ## Editor Tools Awareness
1054
917
  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
918
 
@@ -1081,7 +944,7 @@ Key points:
1081
944
  Example:
1082
945
  Correct: tools={[[Bold, Italic, Underline], [AlignLeft, AlignCenter]]}
1083
946
  Incorrect: tools={[['bold', 'italic', 'underline'], ['alignLeft', 'alignCenter']]}
1084
- `;var te=`
947
+ `;var pt=`
1085
948
  ## Smart Grid (AI-Enhanced Grid) Implementation Guidelines
1086
949
  **CRITICAL: When users ask about ANY of these AI grid terms, ALWAYS provide GridToolbarAIAssistant implementation (not basic Grid):**
1087
950
 
@@ -1115,10 +978,8 @@ Smart Grid: Complete AI-enhanced setup with GridToolbarAIAssistant, proper callb
1115
978
  Important Disclaimer:
1116
979
  Always include this disclaimer when providing Smart Grid examples:
1117
980
  "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(`
981
+ `;var zt={grid:[ct,pt].join(`
1121
982
 
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()}
983
+ `),editor:dt,chart:lt},q=!!process.env.PLUGIN_MODE,ut=A.ToolNames.layoutAssistant(P),ne=A.ToolNames.codeAssistant(P),mt=A.ToolNames.styleAssistant(P),ae=A.ToolNames.iconAssistant(P),gt=A.ToolNames.gettingStartedAssistant(P),ht=A.ToolNames.accessibilityAssistant(P),Xt=A.ToolNames.upgradeAssistant(P);function ft(e,t){return[...q?[]:[A.Tools.createOrchestrator({name:A.ToolNames.orchestrator(P),title:"KendoReact Generator",description:A.ToolDescriptions.orchestrator(u),layoutAssistantName:ut,codeAssistantName:ne,styleAssistantName:mt,iconAssistantName:ae,accessibilityAssistantName:ht,suiteName:u,libKey:U,components:B,requiredAccess:["agent"]},e),A.Tools.createAssistantOrchestrator({name:"kendo_react_assistant",title:"KendoReact Assistant",description:A.ToolDescriptions.assistantOrchestrator(u),codeAssistantName:ne,iconAssistantName:ae,suiteName:u,libKey:U,components:B,requiredAccess:["assistant"]},e)],A.Tools.createLayoutAssistant({name:ut,title:"KendoReact Layout Assistant",description:A.ToolDescriptions.layoutAssistant,getPreContent:q?void 0:()=>`${ot()}
1123
984
 
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();
985
+ ${O()}`,requiredAccess:["agent"]},e),A.Tools.createStyleAssistant({name:mt,title:"KendoReact Style Assistant",description:A.ToolDescriptions.styleAssistant,libKey:U,getPreContent:q?void 0:st,requiredAccess:["agent"]},e),A.Tools.createIconSearch({name:ae,title:"KendoReact Icon Assistant",description:A.ToolDescriptions.iconAssistant,libKey:U,getPostContent:q?void 0:nt,requiredAccess:["assistant","agent"]},e),A.Tools.createCodeAssistant({name:ne,title:"KendoReact Component Assistant",description:A.ToolDescriptions.codeAssistant(u),libKey:U,suiteName:u,components:B,getPostContent:q?void 0:({component:s})=>{let r=s?.trim().toLowerCase(),a=zt[r];return at({component:s,componentInstructions:a})},requiredAccess:["assistant","agent"]},e),...q?[]:[(()=>{let s=new S(gt,{title:"KendoReact Getting Started",description:`Creates a new React project with Kendo CLI and provides essential getting started guidance for ${u} including installation, configuration, and setup instructions.`,requiredAccess:["agent"],inputSchema:ve(u,"kendo-react-app")},async({projectName:r,createNewProject:a,theme:n},{_meta:l})=>{let m=I(s,l);try{await e.recordToolUserRequest({toolName:gt,meta:{projectName:r,createNewProject:a,theme:n,...m}})}catch(h){console.error("Error recording tool request:",h)}return{content:[{type:"text",text:it(r,a,n)}]}});return s})()],A.Tools.createAccessibilityAssistant({name:ht,title:"KendoReact Accessibility Assistant",description:A.ToolDescriptions.accessibilityAssistant(u),libKey:U,suiteName:u,components:B,requiredAccess:["agent"]},e),A.Tools.createUpgrade({name:Xt,title:"KendoReact Upgrade Assistant",description:A.ToolDescriptions.upgradeAssistant(u,"@progress/kendo-react-"),suiteName:u,packagePrefix:"@progress/kendo-react-",requiredAccess:["agent"]},e)].filter(s=>s.hasAccess(t))}var to=eo(import.meta.url),oo=bt.dirname(to),so=bt.resolve(oo,"../package.json"),vt=JSON.parse(Zt.readFileSync(so,"utf-8")),yt=new Qt({name:"kendo-mcp",title:"Kendo MCP Server",version:vt.version});async function ro(){let e=new Jt;C("Starting server... ");let t=await fe(async()=>{let s=(await Ce())?.entitlement;return s?.Product?.Code||s?.product?.code});t!=="none"&&(K.toolNameHeader=t==="agent"||t==="full"?"agent":"assistant",ft(K,t).forEach(s=>s.register(yt)),be({serverName:"react",contextApi:K,enrichWithUserData:!0,additionalFields:{version:vt.version,access_type:t}})),await yt.connect(e)}ro();
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.11.0",
4
4
  "type": "module",
5
5
  "bin": "./dist/index.js",
6
6
  "license": "See LICENSE.md",
@@ -24,10 +24,10 @@
24
24
  "!**/*.tsbuildinfo"
25
25
  ],
26
26
  "dependencies": {
27
- "@grpc/grpc-js": "^1.14.4",
27
+ "@grpc/grpc-js": "^1.14.5",
28
28
  "@grpc/proto-loader": "^0.8.1",
29
29
  "@modelcontextprotocol/sdk": "^1.30.0",
30
- "@progress/kendo-licensing": "^1.11.2",
30
+ "@progress/kendo-licensing": "^1.11.3",
31
31
  "tslib": "^2.3.0"
32
32
  },
33
33
  "devDependencies": {