@progress/kendo-react-mcp 1.7.1-beta.d2eee4d2.0 → 1.8.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.
- package/dist/index.js +297 -360
- package/package.json +2 -2
- package/proto/service.proto +0 -4
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{McpServer as
|
|
3
|
-
`,s
|
|
2
|
+
import{McpServer as Et}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as Rt}from"@modelcontextprotocol/sdk/server/stdio.js";import{dirname as gt,join as ft}from"path";import{fileURLToPath as yt}from"url";import{loadLicense as st,decodeLicenseKey as at,decodeLicenseEvidence as rt}from"@progress/kendo-licensing/utils";var K=class extends Error{constructor(t){super(t),this.name="LicenseError"}};function re(e){return e.replace(/^\uFEFF/,"")}async function j(e){let t=null,n=null;try{let o=st();if(!o.success){let s=new K(o.message);throw e&&await e("license_load_failed",{error:o.message}).catch(()=>{}),s}try{t=(await at(o.value)).licenses.find(async r=>!!(await rt(r)).userId)}catch(s){console.log(s.message),e&&await e("license_load_failed",{error:s.message||"Unknown decoding error"}).catch(()=>{})}if(!t)return[re(o.value),null]}catch(o){return n=o.message||"Unknown error loading license.",e&&await e("license_load_failed",{error:n}).catch(()=>{}),[null,n]}return[re(t),null]}import O from"node:fs";import q from"node:path";var V=!1,P=process.env.DEBUG_LOG_FILE,ie=!!(P&&typeof P=="string");if(ie){let e=q.resolve(P),t=q.dirname(e);if(t!=="."&&t!==process.cwd()&&!O.existsSync(t))try{O.mkdirSync(t,{recursive:!0})}catch(n){console.error("Error creating log directory:",n)}if(!O.existsSync(e))try{O.writeFileSync(e,"")}catch(n){console.error("Error creating log file:",n)}}else V=!1;V=ie&&!!P&&O.existsSync(q.resolve(P));function b(...e){if(V&&P){let o=`${new Date().toISOString()}: ${e.join(" ")}
|
|
3
|
+
`,s=q.resolve(P);O.appendFile(s,o,r=>{r&&console.error("Error writing to log file:",r)})}}import it from"@grpc/proto-loader";import G from"@grpc/grpc-js";import de from"path";import le from"fs";import{fileURLToPath as lt}from"url";var ct=lt(import.meta.url),dt=de.dirname(ct),pe={version:"unknown"},ce=de.resolve(dt,"../package.json");le.existsSync(ce)&&(pe=JSON.parse(le.readFileSync(ce,"utf-8")));function pt(e){return e.replace(/\u2014/g,"--").replace(/\u2013/g,"-").replace(/[^\x20-\x7E]/g,"")}var B=class{constructor(t,n,o){this.contextApiUrl=t;this.protoPath=n;this.options=o;this.toolNameHeader="assistant";let s=it.loadSync(this.protoPath,{keepCase:!0,longs:String,enums:String,defaults:!0,oneofs:!0});this.isDev=this.contextApiUrl?.includes("localhost")||this.contextApiUrl?.includes("127.0.0.1"),b("Using ContextApi URl:",this.contextApiUrl);let r=G.loadPackageDefinition(s);this.client=new r.ContextQueryService(this.contextApiUrl||"contextapi.telerik.com:443",this.isDev?G.credentials.createInsecure():G.credentials.createSsl())}buildRequestMetadata(t={}){return pt(JSON.stringify({...t,source:"npm",version:pe.version,os:process.platform,node_version:process.version}))}async getMetadata({meta:t}={meta:{}}){let[n,o]=this.isDev?["fake_license",null]:await j((l,d)=>this.logEvent(l,d)),s=process.env.CONTEXTAPI_API_KEY,r=s&&typeof s=="string",a=n&&typeof n=="string";if(!a&&!r&&o)throw new Error(`Failed to authenticate with API key or License key!
|
|
4
4
|
|
|
5
|
-
License Error: ${o}`);let a=new D.Metadata;if(r)try{a.add("x-license-key",n)}catch(p){throw h("Error adding license key to metadata:",p),new Error(`Failed to use license key: ${p.message}`)}i&&a.add("x-api-key",s),this.options?.libName&&a.add("x-library-name",this.options.libName),a.add("x-tool-name",this.toolNameHeader);let d=JSON.stringify({...t,source:"npm",version:me.version,os:process.platform,node_version:process.version});return a.add("x-request-metadata",mt(d)),a}async query(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,i)=>{this.client.query(t,o,(r,a)=>{r?i(new Error(r)):s(a)})})}async getApiRefMatches(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,i)=>{this.client.getApiRefMatches(t,o,(r,a)=>{r?i(new Error(r)):s(a)})})}async queryCssUtils(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,i)=>{this.client.cssUtilsSearch(t,o,(r,a)=>{r?(h("Error querying CSS Utils:",r),i(new Error(r))):s(a)})})}async queryIconsSearch(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,i)=>{this.client.iconsSearch(t,o,(r,a)=>{r?(h("Error querying Icons Search:",r),i(new Error(r))):s(a)})})}async queryBuildingBlocks(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,i)=>{this.client.buildingBlocksSearch(t,o,(r,a)=>{r?(h("Error querying Building Blocks:",r),i(new Error(r))):s(a)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((n,o)=>{this.client.validateUserLicense(null,t,(s,i)=>{s?(h("Error validating user license:",s),o(new Error(s))):n(i)})})}async queryThemeGenerate(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,i)=>{this.client.generateTheme(t,o,(r,a)=>{r?(h("Error querying context API/GenerateTheme:",r),i(new Error(r))):s(a)})})}async recordOrchestratorUserRequest({meta:t}){let n=await this.getMetadata({meta:t});return new Promise((o,s)=>{this.client.recordOrchestratorUserRequest(null,n,(i,r)=>{i?(h("Error recording orchestrator user request:",i),s(new Error(i))):o(r)})})}async recordToolUserRequest({toolName:t,meta:n}){let o=await this.getMetadata({meta:n});return new Promise((s,i)=>{this.client.recordToolUserRequest({tool_name:t},o,(r,a)=>{r?(h("Error recording tool user request:",r),i(new Error(r))):s(a)})})}async logEvent(t,n){let o=process.env.LOGGING_API_KEY;if(!o||typeof o!="string"){h("LOGGING_API_KEY not configured, skipping log event");return}let s=new D.Metadata;return s.add("x-api-key",o),new Promise((i,r)=>{this.client.logEvent({event_name:t,fields:n||{}},s,(a,d)=>{a?(h("Error logging event:",a),r(new Error(a))):i()})})}};import{z as K}from"zod";var io=K.object({user_id:K.string(),user_email:K.string().email()});import{z as k}from"zod";var ht=k.object({Product:k.object({Id:k.number().int(),Code:k.string(),Name:k.string()}),License:k.nullable(k.object({Id:k.number().int(),Name:k.string(),Type:k.string(),Active:k.boolean()})),Availability:k.array(k.object({LicenseStart:k.nullable(k.string().datetime()),LicenseEnd:k.nullable(k.string().datetime())})),IsLicenseAvailable:k.optional(k.boolean())}),co=k.array(ht);async function he(e){let t=process.env.KENDO_MCP_ACCESS;if(t==="true"||t==="1"||t==="full")return"full";if(typeof t=="string"&&(t.toLowerCase()==="agent"||t.toLowerCase()==="assistant"))return t.toLowerCase();let n=await e();return n.toLocaleLowerCase()==="agentic_ui_generator"?"agent":n.toLocaleLowerCase()==="ai_coding_assistants"?"assistant":"none"}function ge(){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 gt=1440*60*1e3;function fe(e){let{serverName:t,contextApi:n,additionalFields:o={},intervalMs:s=gt}=e,i="mcp_server_heartbeat",r=async()=>{try{let d={server_name:t,timestamp:new Date().toISOString(),...o};await n.logEvent(i,d)}catch(d){h(`Failed to send heartbeat for ${t}:`,d)}};r();let a=setInterval(r,s);return()=>{clearInterval(a),h(`Heartbeat stopped for ${t}`)}}import{z as j}from"zod";var ft=["default","bootstrap","material","fluent"];function ye(e,t){return{projectName:j.string().default(t).describe("The name of the project. Used as the project folder name when creating a new project."),createNewProject:j.boolean().default(!0).describe(`Whether to create a new project before configuring ${e}. Set to true to scaffold a brand-new project, or false if the project already exists and you only want to add ${e} to it.`),theme:j.enum(ft).default("default").describe("The Kendo UI theme to use. Determines which theme package is installed and imported.")}}var c="Kendo UI for React",T="react",x="kendo";var O=["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","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 kt=bt(yt(vt(import.meta.url)),"../proto/service.proto"),G=new M("test.contextapi.telerik.com:443",kt,{libName:T});var be=async()=>G.validateUserLicense();import _t from"fs";import ot from"path";import{fileURLToPath as $t}from"url";import{z as v}from"zod";var S=class{constructor(t,n,o){this.name=t;this.config=n;this.cb=o}register(t){this.server=t,this.server.registerTool(this.name,this.config,this.cb)}hasAccess(t){return!this.config.requiredAccess||this.config.requiredAccess.length===0?!0:t==="full"||this.config.requiredAccess.includes(t)}};var L=(e,t)=>`# ${e.suiteName} - Code Validation & Quality Assurance
|
|
5
|
+
License Error: ${o}`);let i=new G.Metadata;if(a)try{i.add("x-license-key",n)}catch(l){throw b("Error adding license key to metadata:",l),new Error(`Failed to use license key: ${l.message}`)}return r&&i.add("x-api-key",s),this.options?.libName&&i.add("x-library-name",this.options.libName),i.add("x-tool-name",this.toolNameHeader),i.add("x-request-metadata",this.buildRequestMetadata(t)),i}async query(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.query(t,o,(a,i)=>{a?r(new Error(a)):s(i)})})}async getApiRefMatches(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.getApiRefMatches(t,o,(a,i)=>{a?r(new Error(a)):s(i)})})}async queryCssUtils(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.cssUtilsSearch(t,o,(a,i)=>{a?(b("Error querying CSS Utils:",a),r(new Error(a))):s(i)})})}async queryIconsSearch(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.iconsSearch(t,o,(a,i)=>{a?(b("Error querying Icons Search:",a),r(new Error(a))):s(i)})})}async queryBuildingBlocks(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.buildingBlocksSearch(t,o,(a,i)=>{a?(b("Error querying Building Blocks:",a),r(new Error(a))):s(i)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((n,o)=>{this.client.validateUserLicense(null,t,(s,r)=>{s?(b("Error validating user license:",s),o(new Error(s))):n(r)})})}async queryThemeGenerate(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.generateTheme(t,o,(a,i)=>{a?(b("Error querying context API/GenerateTheme:",a),r(new Error(a))):s(i)})})}async recordOrchestratorUserRequest({meta:t}){let n=await this.getMetadata({meta:t});return new Promise((o,s)=>{this.client.recordOrchestratorUserRequest(null,n,(r,a)=>{r?(b("Error recording orchestrator user request:",r),s(new Error(r))):o(a)})})}async recordToolUserRequest({toolName:t,meta:n}){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.recordToolUserRequest({tool_name:t},o,(a,i)=>{a?(b("Error recording tool user request:",a),r(new Error(a))):s(i)})})}async logEvent(t,n,o={}){let s="h8utJ6rk4PpIWX4JMn9beQDsjVUri6KV0XYfiVwq",{enrichWithUserData:r=!1,meta:a={}}=o,i=s&&typeof s=="string",l=null;if(r)try{let[u]=this.isDev?["fake_license",null]:await j();u&&typeof u=="string"&&(l=u)}catch{}if(!i&&!l){b("Neither LOGGING_API_KEY nor license key available, skipping log event");return}let d=new G.Metadata;return i&&d.add("x-api-key",s),l&&(d.add("x-license-key",l),d.add("x-request-metadata",this.buildRequestMetadata(a)),this.options?.libName&&d.add("x-library-name",this.options.libName)),new Promise((u,f)=>{this.client.logEvent({event_name:t,fields:n||{}},d,(m,y)=>{m?(b("Error logging event:",m),f(new Error(m))):u()})})}};import{z as H}from"zod";var eo=H.object({user_id:H.string(),user_email:H.string().email()});import{z as S}from"zod";var mt=S.object({Product:S.object({Id:S.number().int(),Code:S.string(),Name:S.string()}),License:S.nullable(S.object({Id:S.number().int(),Name:S.string(),Type:S.string(),Active:S.boolean()})),Availability:S.array(S.object({LicenseStart:S.nullable(S.string().datetime()),LicenseEnd:S.nullable(S.string().datetime())})),IsLicenseAvailable:S.optional(S.boolean())}),no=S.array(mt);function T(e,t){let n=e.server?.server.getClientVersion?.(),o=t||{};return n&&(o.clientInfo={name:n.name,version:n.version}),o}async function me(e){let t=process.env.KENDO_MCP_ACCESS;if(t==="true"||t==="1"||t==="full")return"full";if(typeof t=="string"&&(t.toLowerCase()==="agent"||t.toLowerCase()==="assistant"))return t.toLowerCase();let n=await e();return n?.toLocaleLowerCase()==="agentic_ui_generator"?"agent":n?.toLocaleLowerCase()==="ai_coding_assistants"?"assistant":"none"}function ue(){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 he(e){let{serverName:t,contextApi:n,additionalFields:o={},intervalMs:s=ut,enrichWithUserData:r=!1}=e,a="mcp_server_heartbeat",i=async()=>{try{let d={server_name:t,timestamp:new Date().toISOString(),...o};await n.logEvent(a,d,{enrichWithUserData:r})}catch(d){b(`Failed to send heartbeat for ${t}:`,d)}};i();let l=setInterval(i,s);return()=>{clearInterval(l),b(`Heartbeat stopped for ${t}`)}}import{z as W}from"zod";var ht=["default","bootstrap","material","fluent"];function ge(e,t){return{projectName:W.string().default(t).describe("The name of the project. Used as the project folder name when creating a new project."),createNewProject:W.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:W.enum(ht).default("default").describe("The Kendo UI theme to use. Determines which theme package is installed and imported.")}}var c="Kendo UI for React",x="react",E="kendo";var L=["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","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 bt=ft(gt(yt(import.meta.url)),"../proto/service.proto"),M=new B("contextapi.telerik.com:443",bt,{libName:x});var fe=async()=>M.validateUserLicense();import Pt from"fs";import Ze from"path";import{fileURLToPath as Dt}from"url";import{z as v}from"zod";var w=class{constructor(t,n,o){this.name=t;this.config=n;this.cb=o}register(t){this.server=t,this.server.registerTool(this.name,this.config,this.cb)}hasAccess(t){return!this.config.requiredAccess||this.config.requiredAccess.length===0?!0:t==="full"||this.config.requiredAccess.includes(t)}};var $=(e,t)=>`# ${e.suiteName} - Code Validation & Quality Assurance
|
|
6
6
|
|
|
7
7
|
## Comprehensive Code Validation Checklist
|
|
8
8
|
Execute these validation steps systematically to ensure high-quality, maintainable code:
|
|
@@ -46,7 +46,7 @@ Responsive Design:
|
|
|
46
46
|
- Graceful error handling for all user interactions
|
|
47
47
|
- Meaningful error messages for users
|
|
48
48
|
- Network error handling for API calls
|
|
49
|
-
`;var
|
|
49
|
+
`;var z=()=>`## UX/UI Design Best Practices
|
|
50
50
|
|
|
51
51
|
> **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.
|
|
52
52
|
|
|
@@ -147,24 +147,7 @@ When no design token system is defined by the project, apply these minimum spaci
|
|
|
147
147
|
- Section separators: \u2265 24px vertical gap between distinct content areas.
|
|
148
148
|
- Card internal padding: 16\u201324px.
|
|
149
149
|
- Form field vertical gap: \u2265 16px between fields (24px for multi-column groups).
|
|
150
|
-
- Page left/right margin: 24\u201332px minimum, even at desktop widths.`;var
|
|
151
|
-
\`\`\`
|
|
152
|
-
${e.layoutAssistantName}({
|
|
153
|
-
prompt="Provide Kendo Design System utility classes to make the following layout structure responsive across mobile, tablet, and desktop views: [LAYOUT DESCRIPTION HERE]",
|
|
154
|
-
includeBuildingBlockExamples=false // Optional, include examples of Kendo building blocks (Grid, Flex, Stack, etc.)
|
|
155
|
-
})
|
|
156
|
-
\`\`\`
|
|
157
|
-
`,Ct=`**General Responsive Design Guidance:**
|
|
158
|
-
- Use CSS media queries to apply different styles at various breakpoints (e.g., mobile, tablet, desktop).
|
|
159
|
-
- Consider a mobile-first approach, starting with styles for smaller screens and adding complexity for larger screens.
|
|
160
|
-
- Ensure flexible grid layouts that can adapt to different screen sizes.
|
|
161
|
-
- Use relative units (%, em, rem) instead of fixed units (px) for widths and spacing to allow for better scalability.
|
|
162
|
-
- Test the design across multiple devices and screen sizes to ensure a consistent user experience.`,St=`**Tailwind CSS Responsive Design Guidance:**
|
|
163
|
-
- Use Tailwind's responsive utility variants (e.g., sm:, md:, lg:, xl:) to apply styles at specific breakpoints.
|
|
164
|
-
- Start with mobile styles (no prefix) and layer on additional styles for larger screens using the appropriate prefixes.
|
|
165
|
-
- Leverage Tailwind's grid and flex utilities to create flexible layouts that adapt to different screen sizes.
|
|
166
|
-
- Use Tailwind's spacing utilities to maintain consistent spacing across breakpoints.
|
|
167
|
-
- Test the design across multiple devices and screen sizes to ensure a consistent user experience.`,U=(e,t)=>{let n=L({suiteName:e.suiteName,libKey:e.libKey},t.validationSteps),o=e.includeLayout&&e.layoutMode==="utils",s=e.libKey==="angular"?"- **Drag and Drop**: Consider using the DragandDrop and Sortable components when drag-and-drop functionality is needed.":"",i=e.components?e.components.join(", "):"components",r=o?`- And use the ${e.layoutAssistantName} tool to get Kendo CSS utility classes needed for responsive design.`:"",a=o?At(e):"",d=e.layoutMode==="vanilla"?Ct:"",p=e.layoutMode==="tailwind"?St:"";return`# \u{1F3AF} ${e.suiteName} - Execution Plan
|
|
150
|
+
- Page left/right margin: 24\u201332px minimum, even at desktop widths.`;var _=(e,t)=>{let n=$({suiteName:e.suiteName,libKey:e.libKey},t.validationSteps),o=e.libKey==="angular"?"- **Drag and Drop**: Consider using the DragandDrop and Sortable components when drag-and-drop functionality is needed.":"",s=e.components?e.components.join(", "):"components";return`# \u{1F3AF} ${e.suiteName} - Execution Plan
|
|
168
151
|
|
|
169
152
|
**Current Goal:**
|
|
170
153
|
|
|
@@ -176,7 +159,7 @@ ${e.includeComponentsDocs?`- **Component Library:** ${e.suiteName}
|
|
|
176
159
|
- Ensure to use ONLY ${e.suiteName} components for all UI elements.
|
|
177
160
|
- And use the ${e.codeAssistantName} tool to get ${e.suiteName} component documentation and code snippets.
|
|
178
161
|
- Ensure that after you read the plan you use exactly the ${e.codeAssistantName} no matter if there is another tool that can provide code snippets, documentation or other resources related to ${e.suiteName}.
|
|
179
|
-
`:""}${
|
|
162
|
+
`:""}${e.includeLayout?`- **Layout:** Yes
|
|
180
163
|
- And use the ${e.layoutAssistantName} tool to get Kendo CSS utility classes needed for layout structure and responsive design.
|
|
181
164
|
`:""}${e.includeIcons?`- **Icons:** Yes
|
|
182
165
|
- Use icons that align with the project theme and enhance usability.
|
|
@@ -188,37 +171,23 @@ ${e.includeComponentsDocs?`- **Component Library:** ${e.suiteName}
|
|
|
188
171
|
- And use the ${e.styleAssistantName} tool to create a custom theme for your project.
|
|
189
172
|
`:""}${e.includeResponsive?`- **Responsive:**
|
|
190
173
|
- Ensure the layout is fully responsive across mobile, tablet, and desktop views.
|
|
191
|
-
${
|
|
174
|
+
- And use the ${e.layoutAssistantName} tool to get Kendo CSS utility classes needed for responsive design.
|
|
192
175
|
`:""}
|
|
193
176
|
- **Accessible (WCAG 2.2 Level AA):**
|
|
194
177
|
- CRITICAL: You must call the ${e.accessibilityAssistantName} tool with includeGeneralGuidelines=true on your first call to get WCAG 2.2 Level AA guidelines.
|
|
195
178
|
- For subsequent calls, use includeGeneralGuidelines=false to get only component-specific accessibility information.
|
|
196
179
|
- Ensure all components meet WCAG 2.2 Level AA standards.
|
|
197
180
|
|
|
198
|
-
${
|
|
199
|
-
**LAYOUT MODE: KENDO DESIGN SYSTEM CSS UTILITIES**
|
|
181
|
+
${e.includeLayout?`**STYLING AND LAYOUT REQUIREMENTS:**
|
|
200
182
|
## CRITICAL DESIGN SYSTEM CONSTRAINTS
|
|
201
183
|
- **USE ONLY KENDO DESIGN SYSTEM UTILITIES** for ALL styling, layout, spacing, positioning, and responsive behavior
|
|
202
184
|
- Avoid custom CSS, inline styles, or other CSS framework classes
|
|
203
185
|
- The ${e.layoutAssistantName} tool will provide the specific Kendo CSS utility classes needed
|
|
204
186
|
- All layout requirements must use Kendo utilities exclusively
|
|
205
|
-
`:""}
|
|
206
|
-
${e.layoutMode==="vanilla"?`**STYLING AND LAYOUT REQUIREMENTS:**
|
|
207
|
-
**LAYOUT MODE: VANILLA**
|
|
208
|
-
- In this mode, you should use Kendo UI components and vanilla CSS for layout and styling.
|
|
209
|
-
- Do NOT use any utility-first CSS classes (e.g., from Tailwind) for layout or styling.
|
|
210
|
-
- Focus on leveraging the built-in capabilities of Kendo UI components and writing custom CSS as needed to achieve the desired design and layout.
|
|
211
|
-
`:""}
|
|
212
|
-
${e.layoutMode==="tailwind"?`**STYLING AND LAYOUT REQUIREMENTS:**
|
|
213
|
-
**LAYOUT MODE: TAILWIND**
|
|
214
|
-
- In this mode, you should use Tailwind CSS utility classes for layout and styling.
|
|
215
|
-
- Do NOT write custom CSS or use vanilla CSS for layout or styling.
|
|
216
|
-
- Focus on leveraging Tailwind's utility-first approach to achieve the desired design and layout, while still using Kendo UI components for functionality.
|
|
217
|
-
`:""}
|
|
218
187
|
|
|
219
|
-
---
|
|
188
|
+
`:""}---
|
|
220
189
|
|
|
221
|
-
${
|
|
190
|
+
${z()}
|
|
222
191
|
|
|
223
192
|
---
|
|
224
193
|
|
|
@@ -266,8 +235,7 @@ ${e.accessibilityAssistantName}({
|
|
|
266
235
|
includeGeneralGuidelines=false
|
|
267
236
|
})
|
|
268
237
|
\`\`\`
|
|
269
|
-
|
|
270
|
-
${o?`
|
|
238
|
+
${e.includeLayout?`
|
|
271
239
|
### Phase: Layout Foundation
|
|
272
240
|
|
|
273
241
|
**Step 1: Create Base Layout Structure**
|
|
@@ -295,10 +263,10 @@ Based on your current goal, analyze what other ${e.suiteName} components are nee
|
|
|
295
263
|
- **Data Entry**: Consider Form, TextBox, DatePicker, DropDownList, Upload, Validation components
|
|
296
264
|
- **Content Management**: Consider Grid, Editor, TreeView, FileManager, Dialog components
|
|
297
265
|
- **E-commerce**: Consider ListView, Card, Button, Rating, Badge, Carousel components
|
|
298
|
-
${
|
|
266
|
+
${o}
|
|
299
267
|
|
|
300
268
|
**IMPORTANT COMPONENT USAGE REQUIREMENTS:**
|
|
301
|
-
- Make sure to identify all necessary features related to the ${
|
|
269
|
+
- Make sure to identify all necessary features related to the ${s} based on the current goal.
|
|
302
270
|
- Make sure to identify specific features needed for other ${e.suiteName} components based on the current goal.
|
|
303
271
|
- Make sure to generate a query for ${e.codeAssistantName} tool for each component and call the tool for each specific feature or functionality.
|
|
304
272
|
- Always specify the exact features you want for each component. Describe only the needed functionality, and behavior you need. Be concise and don't include any information about the use case.
|
|
@@ -337,8 +305,15 @@ ${e.includeResponsive?`
|
|
|
337
305
|
### Phase: Layout Responsive Finalization
|
|
338
306
|
|
|
339
307
|
**Step 1: Implement Responsive Behavior**
|
|
340
|
-
${a}${d}${p}`:""}
|
|
341
308
|
|
|
309
|
+
**Tool call example:**
|
|
310
|
+
\`\`\`
|
|
311
|
+
${e.layoutAssistantName}({
|
|
312
|
+
prompt="Provide Kendo Design System utility classes to make the following layout structure responsive across mobile, tablet, and desktop views: [LAYOUT DESCRIPTION HERE]",
|
|
313
|
+
includeBuildingBlockExamples=false // Optional, include examples of Kendo building blocks (Grid, Flex, Stack, etc.)
|
|
314
|
+
})
|
|
315
|
+
\`\`\`
|
|
316
|
+
`:""}
|
|
342
317
|
${e.includeTheming?`
|
|
343
318
|
**Step 2: Custom Theme Implementation**
|
|
344
319
|
|
|
@@ -402,7 +377,7 @@ ${e.includeResponsive?"- Responsive layout works across breakpoints":""}
|
|
|
402
377
|
**Quick Fixes (if needed):**
|
|
403
378
|
|
|
404
379
|
After code implementation and validation you can make quick fixes as needed:
|
|
405
|
-
- If any build errors are found, fix them and re-run the application.
|
|
380
|
+
- If any build errors are found, fix them and re-run the application. Do NOT present the implementation as complete until the build succeeds without errors.
|
|
406
381
|
- Use ${e.codeAssistantName} for component-specific issues
|
|
407
382
|
- Use ${e.layoutAssistantName} for styling adjustments
|
|
408
383
|
|
|
@@ -411,7 +386,7 @@ After code implementation and validation you can make quick fixes as needed:
|
|
|
411
386
|
- Do NOT generate or suggest any code until all tools have been used and validated responses are incorporated.
|
|
412
387
|
- Focus on planning and sequencing.
|
|
413
388
|
- Summarize the components, layouts, and utilities gathered.
|
|
414
|
-
- Confirm all required inputs from tools have been provided.`};var
|
|
389
|
+
- Confirm all required inputs from tools have been provided.`};var Y=e=>`# ${e.suiteName} Assistant
|
|
415
390
|
|
|
416
391
|
**What you're looking for:**
|
|
417
392
|
|
|
@@ -504,6 +479,14 @@ After gathering information:
|
|
|
504
479
|
3. Use the official ${e.suiteName} documentation for detailed implementation guides
|
|
505
480
|
4. Refer to the component examples and code snippets provided
|
|
506
481
|
|
|
482
|
+
### Step 4: Build and Validation
|
|
483
|
+
|
|
484
|
+
After implementing the code:
|
|
485
|
+
- Run \`npm run build\` to verify the implementation compiles successfully without any build errors.
|
|
486
|
+
- If any build errors are found, fix them and re-run the build.
|
|
487
|
+
- Use ${e.codeAssistantName} for component-specific issues.
|
|
488
|
+
- Do NOT present the implementation as complete until the build succeeds without errors.
|
|
489
|
+
|
|
507
490
|
---
|
|
508
491
|
|
|
509
492
|
## Getting Started
|
|
@@ -512,11 +495,12 @@ After gathering information:
|
|
|
512
495
|
1. Start by calling ${e.codeAssistantName} for the components you need
|
|
513
496
|
2. ${e.includeIcons?`Search for icons using ${e.iconAssistantName}`:"Review the component documentation"}
|
|
514
497
|
3. Follow the ${e.suiteName} official documentation for implementation details
|
|
498
|
+
4. Run \`npm run build\` to verify the implementation compiles successfully
|
|
515
499
|
|
|
516
500
|
**Important Notes:**
|
|
517
501
|
- These tools provide documentation and guidance, not code generation
|
|
518
502
|
- Always refer to official ${e.suiteName} documentation for the most up-to-date information
|
|
519
|
-
- Tool responses include usage examples and best practices`;var
|
|
503
|
+
- Tool responses include usage examples and best practices`;var D=(e,t)=>({SETUP_VALIDATION:`
|
|
520
504
|
UI Library Setup:
|
|
521
505
|
- ${e} modules properly imported and configured
|
|
522
506
|
- ${e} theme properly loaded and applied
|
|
@@ -534,319 +518,78 @@ After gathering information:
|
|
|
534
518
|
- Do not use inline styles
|
|
535
519
|
- Consistent ${e} theme application across all components
|
|
536
520
|
- Custom theme variables properly defined and scoped
|
|
537
|
-
- ${e}
|
|
538
|
-
- Brand colors integrated with ${e} component themes`});
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
--kendo-color-border-alt
|
|
545
|
-
/* Base */
|
|
546
|
-
--kendo-color-base-subtle
|
|
547
|
-
--kendo-color-base-subtle-hover
|
|
548
|
-
--kendo-color-base-subtle-active
|
|
549
|
-
--kendo-color-base
|
|
550
|
-
--kendo-color-base-hover
|
|
551
|
-
--kendo-color-base-active
|
|
552
|
-
--kendo-color-base-emphasis
|
|
553
|
-
--kendo-color-base-on-subtle
|
|
554
|
-
--kendo-color-on-base
|
|
555
|
-
--kendo-color-base-on-surface
|
|
556
|
-
/* Primary */
|
|
557
|
-
--kendo-color-primary-subtle
|
|
558
|
-
--kendo-color-primary-subtle-hover
|
|
559
|
-
--kendo-color-primary-subtle-active
|
|
560
|
-
--kendo-color-primary
|
|
561
|
-
--kendo-color-primary-hover
|
|
562
|
-
--kendo-color-primary-active
|
|
563
|
-
--kendo-color-primary-emphasis
|
|
564
|
-
--kendo-color-primary-on-subtle
|
|
565
|
-
--kendo-color-on-primary
|
|
566
|
-
--kendo-color-primary-on-surface
|
|
567
|
-
/* Secondary */
|
|
568
|
-
--kendo-color-secondary-subtle
|
|
569
|
-
--kendo-color-secondary-subtle-hover
|
|
570
|
-
--kendo-color-secondary-subtle-active
|
|
571
|
-
--kendo-color-secondary
|
|
572
|
-
--kendo-color-secondary-hover
|
|
573
|
-
--kendo-color-secondary-active
|
|
574
|
-
--kendo-color-secondary-emphasis
|
|
575
|
-
--kendo-color-secondary-on-subtle
|
|
576
|
-
--kendo-color-on-secondary
|
|
577
|
-
--kendo-color-secondary-on-surface
|
|
578
|
-
/* Tertiary */
|
|
579
|
-
--kendo-color-tertiary-subtle
|
|
580
|
-
--kendo-color-tertiary-subtle-hover
|
|
581
|
-
--kendo-color-tertiary-subtle-active
|
|
582
|
-
--kendo-color-tertiary
|
|
583
|
-
--kendo-color-tertiary-hover
|
|
584
|
-
--kendo-color-tertiary-active
|
|
585
|
-
--kendo-color-tertiary-emphasis
|
|
586
|
-
--kendo-color-tertiary-on-subtle
|
|
587
|
-
--kendo-color-on-tertiary
|
|
588
|
-
--kendo-color-tertiary-on-surface
|
|
589
|
-
/* Info */
|
|
590
|
-
--kendo-color-info-subtle
|
|
591
|
-
--kendo-color-info-subtle-hover
|
|
592
|
-
--kendo-color-info-subtle-active
|
|
593
|
-
--kendo-color-info
|
|
594
|
-
--kendo-color-info-hover
|
|
595
|
-
--kendo-color-info-active
|
|
596
|
-
--kendo-color-info-emphasis
|
|
597
|
-
--kendo-color-info-on-subtle
|
|
598
|
-
--kendo-color-on-info
|
|
599
|
-
--kendo-color-info-on-surface
|
|
600
|
-
/* Success */
|
|
601
|
-
--kendo-color-success-subtle
|
|
602
|
-
--kendo-color-success-subtle-hover
|
|
603
|
-
--kendo-color-success-subtle-active
|
|
604
|
-
--kendo-color-success
|
|
605
|
-
--kendo-color-success-hover
|
|
606
|
-
--kendo-color-success-active
|
|
607
|
-
--kendo-color-success-emphasis
|
|
608
|
-
--kendo-color-success-on-subtle
|
|
609
|
-
--kendo-color-on-success
|
|
610
|
-
--kendo-color-success-on-surface
|
|
611
|
-
/* Warning */
|
|
612
|
-
--kendo-color-warning-subtle
|
|
613
|
-
--kendo-color-warning-subtle-hover
|
|
614
|
-
--kendo-color-warning-subtle-active
|
|
615
|
-
--kendo-color-warning
|
|
616
|
-
--kendo-color-warning-hover
|
|
617
|
-
--kendo-color-warning-active
|
|
618
|
-
--kendo-color-warning-emphasis
|
|
619
|
-
--kendo-color-warning-on-subtle
|
|
620
|
-
--kendo-color-on-warning
|
|
621
|
-
--kendo-color-warning-on-surface
|
|
622
|
-
/* Error */
|
|
623
|
-
--kendo-color-error-subtle
|
|
624
|
-
--kendo-color-error-subtle-hover
|
|
625
|
-
--kendo-color-error-subtle-active
|
|
626
|
-
--kendo-color-error
|
|
627
|
-
--kendo-color-error-hover
|
|
628
|
-
--kendo-color-error-active
|
|
629
|
-
--kendo-color-error-emphasis
|
|
630
|
-
--kendo-color-error-on-subtle
|
|
631
|
-
--kendo-color-on-error
|
|
632
|
-
--kendo-color-error-on-surface
|
|
633
|
-
/* Light */
|
|
634
|
-
--kendo-color-light-subtle
|
|
635
|
-
--kendo-color-light-subtle-hover
|
|
636
|
-
--kendo-color-light-subtle-active
|
|
637
|
-
--kendo-color-light
|
|
638
|
-
--kendo-color-light-hover
|
|
639
|
-
--kendo-color-light-active
|
|
640
|
-
--kendo-color-light-emphasis
|
|
641
|
-
--kendo-color-light-on-subtle
|
|
642
|
-
--kendo-color-on-light
|
|
643
|
-
--kendo-color-light-on-surface
|
|
644
|
-
/* Dark */
|
|
645
|
-
--kendo-color-dark-subtle
|
|
646
|
-
--kendo-color-dark-subtle-hover
|
|
647
|
-
--kendo-color-dark-subtle-active
|
|
648
|
-
--kendo-color-dark
|
|
649
|
-
--kendo-color-dark-hover
|
|
650
|
-
--kendo-color-dark-active
|
|
651
|
-
--kendo-color-dark-emphasis
|
|
652
|
-
--kendo-color-dark-on-subtle
|
|
653
|
-
--kendo-color-on-dark
|
|
654
|
-
--kendo-color-dark-on-surface
|
|
655
|
-
/* Inverse */
|
|
656
|
-
--kendo-color-inverse-subtle
|
|
657
|
-
--kendo-color-inverse-subtle-hover
|
|
658
|
-
--kendo-color-inverse-subtle-active
|
|
659
|
-
--kendo-color-inverse
|
|
660
|
-
--kendo-color-inverse-hover
|
|
661
|
-
--kendo-color-inverse-active
|
|
662
|
-
--kendo-color-inverse-emphasis
|
|
663
|
-
--kendo-color-inverse-on-subtle
|
|
664
|
-
--kendo-color-on-inverse
|
|
665
|
-
--kendo-color-inverse-on-surface
|
|
666
|
-
/* Series A */
|
|
667
|
-
--kendo-color-series-a
|
|
668
|
-
--kendo-color-series-a-bold
|
|
669
|
-
--kendo-color-series-a-bolder
|
|
670
|
-
--kendo-color-series-a-subtle
|
|
671
|
-
--kendo-color-series-a-subtler
|
|
672
|
-
/* Series B */
|
|
673
|
-
--kendo-color-series-b
|
|
674
|
-
--kendo-color-series-b-bold
|
|
675
|
-
--kendo-color-series-b-bolder
|
|
676
|
-
--kendo-color-series-b-subtle
|
|
677
|
-
--kendo-color-series-b-subtler
|
|
678
|
-
/* Series C */
|
|
679
|
-
--kendo-color-series-c
|
|
680
|
-
--kendo-color-series-c-bold
|
|
681
|
-
--kendo-color-series-c-bolder
|
|
682
|
-
--kendo-color-series-c-subtle
|
|
683
|
-
--kendo-color-series-c-subtler
|
|
684
|
-
/* Series D */
|
|
685
|
-
--kendo-color-series-d
|
|
686
|
-
--kendo-color-series-d-bold
|
|
687
|
-
--kendo-color-series-d-bolder
|
|
688
|
-
--kendo-color-series-d-subtle
|
|
689
|
-
--kendo-color-series-d-subtler
|
|
690
|
-
/* Series E */
|
|
691
|
-
--kendo-color-series-e
|
|
692
|
-
--kendo-color-series-e-bold
|
|
693
|
-
--kendo-color-series-e-bolder
|
|
694
|
-
--kendo-color-series-e-subtle
|
|
695
|
-
--kendo-color-series-e-subtler
|
|
696
|
-
/* Series F */
|
|
697
|
-
--kendo-color-series-f
|
|
698
|
-
--kendo-color-series-f-bold
|
|
699
|
-
--kendo-color-series-f-bolder
|
|
700
|
-
--kendo-color-series-f-subtle
|
|
701
|
-
--kendo-color-series-f-subtler
|
|
702
|
-
/* Typography */
|
|
703
|
-
--kendo-font-family-sans
|
|
704
|
-
--kendo-font-family-sans-serif
|
|
705
|
-
--kendo-font-family-monospace
|
|
706
|
-
--kendo-font-size-xs
|
|
707
|
-
--kendo-line-height-xs
|
|
708
|
-
--kendo-font-size-sm
|
|
709
|
-
--kendo-line-height-sm
|
|
710
|
-
--kendo-font-size
|
|
711
|
-
--kendo-line-height
|
|
712
|
-
--kendo-font-size-lg
|
|
713
|
-
--kendo-line-height-lg
|
|
714
|
-
/* Border Radius */
|
|
715
|
-
--kendo-border-radius-none
|
|
716
|
-
--kendo-border-radius-xs
|
|
717
|
-
--kendo-border-radius-sm
|
|
718
|
-
--kendo-border-radius-md
|
|
719
|
-
--kendo-border-radius-lg
|
|
720
|
-
--kendo-border-radius-xl
|
|
721
|
-
--kendo-border-radius-xxl
|
|
722
|
-
--kendo-border-radius-xxxl
|
|
723
|
-
--radius-4xl: 1.5rem
|
|
724
|
-
--kendo-border-radius-full`,ve=`I need you to set up a system where Tailwind CSS is the single source of truth for all design tokens, and those tokens are automatically reflected as CSS custom properties so I can use them in regular CSS too.
|
|
725
|
-
Requirements:
|
|
726
|
-
|
|
727
|
-
All design tokens (colors, spacing, font families, border radius, shadows) are defined once in tailwind.config.js
|
|
728
|
-
A Tailwind plugin emits every token as a --token-name CSS custom property on :root
|
|
729
|
-
Colors support Tailwind's opacity modifier syntax (bg-primary/50) using the rgb(var(--color-x-rgb) / <alpha-value>) pattern
|
|
730
|
-
Dark mode tokens are emitted under .dark so that both dark: utility variants and var(--color-x) in custom CSS update together
|
|
731
|
-
var(--color-primary) in hand-written CSS and bg-primary in HTML resolve to the same value
|
|
732
|
-
|
|
733
|
-
Use the Kendo theme tokens listed above as the design tokens.
|
|
734
|
-
|
|
735
|
-
Output I need:
|
|
736
|
-
|
|
737
|
-
The full tailwind.config.js with the plugin included
|
|
738
|
-
The base CSS file importing Tailwind
|
|
739
|
-
A short example showing a component using both bg-primary and var(--color-primary) side by side`,ke=`I need you to set up a system where Tailwind CSS v4 is the single source of truth for all design tokens, and those tokens are automatically available as CSS custom properties so I can use them in regular CSS too.
|
|
740
|
-
Requirements:
|
|
741
|
-
|
|
742
|
-
All design tokens (colors, spacing, font families, border radius, shadows) are defined once in the @theme block \u2014 no tailwind.config.js
|
|
743
|
-
Every @theme variable is natively available as a var(--token-name) CSS custom property with no plugin needed
|
|
744
|
-
Colors use oklch and support opacity modifier syntax (bg-primary/50) natively
|
|
745
|
-
Dark mode tokens are re-declared under .dark so that both dark: utility variants and var(--color-x) in custom CSS update together
|
|
746
|
-
var(--color-primary) in hand-written CSS and bg-primary in HTML resolve to the same value
|
|
747
|
-
|
|
748
|
-
Use the Kendo theme tokens listed above as the design tokens.
|
|
749
|
-
|
|
750
|
-
Output I need:
|
|
751
|
-
|
|
752
|
-
The single CSS file with @import "tailwindcss", the @theme block, and the .dark overrides
|
|
753
|
-
A short example showing a component using both bg-primary and var(--color-primary) side by side`,z=`## Tailwind CSS Setup Instructions
|
|
754
|
-
|
|
755
|
-
Detect which version of Tailwind CSS the project uses, then follow the appropriate setup guide below.
|
|
756
|
-
|
|
757
|
-
### Kendo Theme Tokens
|
|
758
|
-
These are the design tokens to map into Tailwind:
|
|
759
|
-
${wt}
|
|
760
|
-
|
|
761
|
-
### For Tailwind CSS v3 (uses tailwind.config.js)
|
|
762
|
-
|
|
763
|
-
<tailwind_v3_setup>
|
|
764
|
-
${ve}
|
|
765
|
-
</tailwind_v3_setup>
|
|
766
|
-
|
|
767
|
-
### For Tailwind CSS v4 (uses @theme block, no config file)
|
|
768
|
-
|
|
769
|
-
<tailwind_v4_setup>
|
|
770
|
-
${ke}
|
|
771
|
-
</tailwind_v4_setup>
|
|
772
|
-
|
|
773
|
-
IMPORTANT: Detect which version of Tailwind CSS the project uses, then follow the matching setup guide.`;function Tt(e,t){let n;try{n=JSON.parse(e)}catch{return e}let o=n?.Item;if(!o)return e;let s=[],i=o.FullName??o.Name??"",r=o.Type??"",a=o.Summary??"",d=o.SyntaxContent??"";s.push(`## API Reference Item
|
|
774
|
-
- Name: ${i}
|
|
775
|
-
- Type: ${r}
|
|
776
|
-
- Summary: ${a}
|
|
777
|
-
- Syntax: ${d}`);let p=n.RelatedItemsByType?.return_type;if(p?.length){let u=p[0].Text;u&&s.push(`- Return Type: ${u}`)}let b=o.Examples??[];if(b.length>0){let u=`## Examples
|
|
778
|
-
`,l=0;for(let y of b){let A=(y.Component??"").toLowerCase(),C=t.toLowerCase();if(A&&A!==C&&A!=="general")continue;l+=1;let w=y.Code??"";u+=`### Example ${l}
|
|
521
|
+
- ${e} icons properly loaded and optimized
|
|
522
|
+
- Brand colors integrated with ${e} component themes`});function At(e,t){let n;try{n=JSON.parse(e)}catch{return e}let o=n?.Item;if(!o)return e;let s=[],r=o.FullName??o.Name??"",a=o.Type??"",i=o.Summary??"",l=o.SyntaxContent??"";s.push(`## API Reference Item
|
|
523
|
+
- Name: ${r}
|
|
524
|
+
- Type: ${a}
|
|
525
|
+
- Summary: ${i}
|
|
526
|
+
- Syntax: ${l}`);let d=n.RelatedItemsByType?.return_type;if(d?.length){let y=d[0].Text;y&&s.push(`- Return Type: ${y}`)}let u=o.Examples??[];if(u.length>0){let y=`## Examples
|
|
527
|
+
`,h=0;for(let A of u){let p=(A.Component??"").toLowerCase(),C=t.toLowerCase();if(p&&p!==C&&p!=="general")continue;h+=1;let k=A.Code??"";y+=`### Example ${h}
|
|
779
528
|
\`\`\`
|
|
780
|
-
${
|
|
529
|
+
${k}
|
|
781
530
|
\`\`\`
|
|
782
|
-
`}
|
|
783
|
-
${C}`)}return
|
|
784
|
-
`+
|
|
531
|
+
`}h>0&&s.push(y)}let f=n.RelatedItemsByType??{},m=[];for(let[y,h]of Object.entries(f))if(!(y==="return_type"||y==="render_fragment"))for(let A of h??[]){let p=A.FullName??"",C=A.ShortText??"";m.push(`### ${p} (${y})
|
|
532
|
+
${C}`)}return m.length>0&&s.push(`## Additional Context
|
|
533
|
+
`+m.join(`
|
|
785
534
|
---
|
|
786
535
|
`)),s.join(`
|
|
787
536
|
|
|
788
|
-
`)}
|
|
789
|
-
`)||"No CSS utilities found for the given prompt.",
|
|
537
|
+
`)}function ye(e,t,n){let{name:o,title:s,description:r,layoutAssistantName:a,codeAssistantName:i,styleAssistantName:l,iconAssistantName:d,accessibilityAssistantName:u,suiteName:f,libKey:m,components:y}=e,h=new w(o,{title:s,description:r,requiredAccess:e.requiredAccess,inputSchema:{userIntent:v.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 ${f} components you want to use.`),needsComponentsDocsConfidence:v.number().min(0).max(1).default(1).describe("Confidence (0-1) to include Component Documentation assistance. Default is 1."),needsLayoutConfidence:v.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Layout assistance. Default is 0."),needsStylingConfidence:v.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Theming/Styling assistance. Default is 0."),needsResponsiveBehaviorConfidence:v.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Responsive Behavior assistance. Default is 0."),needsIconsConfidence:v.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Icons assistance. Default is 0."),componentsNeeded:v.array(v.enum(y)).optional().describe(`Optional list of specific ${f} components needed for the project.`)}},async({userIntent:A,needsComponentsDocsConfidence:p,needsLayoutConfidence:C,needsStylingConfidence:k,needsResponsiveBehaviorConfidence:I,needsIconsConfidence:R,componentsNeeded:N},{_meta:tt})=>{let ot=T(h,tt);b("UI Orchestrator called with:",{userIntent:A,needsComponentsDocsConfidence:p,needsLayoutConfidence:C,needsStylingConfidence:k,needsResponsiveBehaviorConfidence:I,needsIconsConfidence:R});try{await n.recordOrchestratorUserRequest({meta:{userIntent:A,componentsNeeded:N,...ot}})}catch(F){throw U(F)}let nt=h.server?.server.getClientCapabilities?.()?.elicitation,ae;if(nt&&k>.3&&k<=.6){let F=await h.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"]}});F?.action==="accept"&&F.content?.includeCustomTheming&&(ae=!0)}return{content:[{type:"text",text:_({name:o,userIntent:A,includeComponentsDocs:p>.3,includeTheming:k>.6||!!ae,includeLayout:C>.5,includeIcons:R>.6,includeResponsive:C>.5&&I>.4,layoutAssistantName:a,codeAssistantName:i,styleAssistantName:l,iconAssistantName:d,accessibilityAssistantName:u,suiteName:f,libKey:m,components:N},t)}]}});return h}function be(e,t){let{name:n,title:o,description:s,iconAssistantName:r,codeAssistantName:a,suiteName:i,libKey:l,components:d}=e,u=new w(n,{title:o,description:s,inputSchema:{userIntent:v.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:v.number().min(0).max(1).default(.7).describe("Confidence (0-1) to include Icons assistance. Default is 0.7."),componentsNeeded:v.array(v.enum(d)).optional().describe(`Optional list of specific ${i} components you want to learn about.`)},requiredAccess:e.requiredAccess},async({userIntent:f,needsIconsConfidence:m,componentsNeeded:y},{_meta:h})=>{let A=T(u,h);b("Assistant Orchestrator called with:",{userIntent:f,needsIconsConfidence:m,componentsNeeded:y});try{await t.recordOrchestratorUserRequest({meta:{userIntent:f,componentsNeeded:y,...A}})}catch(C){throw U(C)}return{content:[{type:"text",text:Y({name:n,userIntent:f,includeComponentsDocs:!0,includeIcons:m>.5,codeAssistantName:a,iconAssistantName:r,suiteName:i,libKey:l,components:y})}]}});return u}function Ae(e,t){let{name:n,title:o,description:s,suiteName:r,libKey:a,getPreContent:i}=e,l=new w(n,{title:o,description:s,requiredAccess:e.requiredAccess,inputSchema:{prompt:v.string().describe("An enhanced prompt describing the HTML layout structure, design requirements or specific visual effects you want to achieve."),includeBuildingBlockExamples:v.boolean().describe("Whether to include building block examples. Defaults to false.").default(!1)}},async({prompt:d,includeBuildingBlockExamples:u},{_meta:f})=>{let m=T(l,f);b("Layout Assistant called with:",{prompt:d,includeBuildingBlockExamples:u});try{let h=(await t.queryCssUtils({query:d},{...m})).values.join(`
|
|
538
|
+
`)||"No CSS utilities found for the given prompt.",A=i?.()??"",p=C=>`${A}
|
|
790
539
|
|
|
791
540
|
# Kendo Design System CSS Utilities
|
|
792
541
|
|
|
793
|
-
${
|
|
794
|
-
${
|
|
795
|
-
`;if(
|
|
542
|
+
${h}
|
|
543
|
+
${C??""}
|
|
544
|
+
`;if(u)try{let C=await t.queryBuildingBlocks({query:d,lib_name:a},{...m}),k="";C.items?.length>0&&(k=`
|
|
796
545
|
## Building Blocks Examples
|
|
797
546
|
|
|
798
547
|
The examples here are for demonstration purpose how CSS utils can be implemented in various building blocks.
|
|
799
548
|
However, consider your own design requirements and specifics in order to implement your templates/building blocks correctly.
|
|
800
549
|
|
|
801
|
-
${
|
|
802
|
-
### ${
|
|
550
|
+
${C.items.map(I=>`
|
|
551
|
+
### ${I.name}
|
|
803
552
|
|
|
804
|
-
${
|
|
553
|
+
${I.description}
|
|
805
554
|
|
|
806
555
|
\`\`\`code
|
|
807
|
-
${
|
|
556
|
+
${I.code}
|
|
808
557
|
\`\`\`
|
|
809
558
|
`).join(`
|
|
810
|
-
`)}`),
|
|
811
|
-
IMPORTANT: You need to set up Tailwind CSS so it becomes the single source of truth for all design tokens. Detect which Tailwind version the project uses and follow the appropriate setup instructions below.
|
|
559
|
+
`)}`),h=p(k)}catch(C){b("Error calling building-blocks service:",C),h=p()}else h=p();return{content:[{type:"text",text:h}]}}catch(y){throw U(y)}});return l}function Ce(e,t){let{name:n,title:o,description:s,libKey:r,getPreContent:a}=e,i=new w(n,{title:o,description:s,requiredAccess:e.requiredAccess,inputSchema:{prompt:v.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:d})=>{let u=T(i,d);b("Style Assistant called with:",{prompt:l});let f="";try{let h=await t.queryThemeGenerate({prompt:l},{...u});if(h.variables_json){let A=JSON.parse(h.variables_json),p=[];if(A)for(let C of Object.keys(A))typeof A[C]=="string"&&p.push(`${C}: ${A[C]}`);f=p.join(`
|
|
812
560
|
|
|
813
|
-
|
|
814
|
-
${z}
|
|
815
|
-
</tailwind_setup_instructions>
|
|
816
|
-
`}]};let p="";try{let f=await t.queryThemeGenerate({prompt:a},{_meta:d});if(f.variables_json){let u=JSON.parse(f.variables_json),l=[];if(u)for(let y of Object.keys(u))typeof u[y]=="string"&&l.push(`${y}: ${u[y]}`);p=l.join(`
|
|
817
|
-
|
|
818
|
-
`)}}catch(f){throw R(f)}let b=r?.()??"";return{content:[{type:"text",text:p?`Use the following CSS variables to style the web application, including colors, typography, spacing, and component appearance.
|
|
561
|
+
`)}}catch(h){throw U(h)}let m=a?.()??"";return{content:[{type:"text",text:f?`Use the following CSS variables to style the web application, including colors, typography, spacing, and component appearance.
|
|
819
562
|
Ensure the variables are applied consistently across all relevant elements.
|
|
820
563
|
Do NOT set any inline styles. CSS variables should be defined in global or component-level CSS files, or via supported theming mechanisms.
|
|
821
564
|
|
|
822
|
-
${
|
|
565
|
+
${m}
|
|
823
566
|
|
|
824
567
|
## Generated CSS Variables
|
|
825
568
|
|
|
826
569
|
\`\`\`css
|
|
827
|
-
${
|
|
570
|
+
${f}
|
|
828
571
|
\`\`\`
|
|
829
|
-
`:"No CSS variables were generated for the given prompt."}
|
|
572
|
+
`:"No CSS variables were generated for the given prompt."}]}});return i}function ve(e,t){let{name:n,title:o,description:s,libKey:r,getPostContent:a}=e,i=new w(n,{title:o,description:s,requiredAccess:e.requiredAccess,inputSchema:{query:v.string().describe("A search query for finding icons. Be specific about the icon purpose, style, or action."),limit:v.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:d},{_meta:u})=>{let f=T(i,u);b("Icon Search called with:",{query:l,limit:d});try{let m=await t.queryIconsSearch({query:l,limit:d*100},{...f}),y=a?.()??"";return{content:[{type:"text",text:`${m.values.join(`
|
|
830
573
|
|
|
831
574
|
`)}
|
|
832
575
|
|
|
833
|
-
${
|
|
576
|
+
${y}`}]}}catch(m){throw U(m)}});return i}function Se(e,t){let{name:n,title:o,description:s,libKey:r,suiteName:a,components:i,componentAliases:l,getPostContent:d}=e,u=new w(n,{title:o,description:s,requiredAccess:e.requiredAccess,inputSchema:{query:v.string().describe("The query to search for."),component:v.enum(i).describe("The component to search for. If not specified, use General.")}},async({query:f,component:m},{_meta:y})=>{let h=T(u,y);b("Code Assistant called with:",{query:f,component:m});let A=m;if(l){let p=l[m];p&&(A=p)}try{let C=(await t.query({query:f,component:A?.toLowerCase()??"general",lib_name:r,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]},{...h})).values.map(R=>R.replace(/\0/g,"")),k=d?.({component:m})??"";return{content:[{type:"text",text:`${C.join(`
|
|
834
577
|
|
|
835
578
|
`)}
|
|
836
579
|
|
|
837
|
-
${
|
|
580
|
+
${k}`}]}}catch(p){throw U(p)}});return u}function we(e,t){let{name:n,title:o,description:s,libKey:r,suiteName:a,components:i,componentAliases:l}=e,d=new w(n,{title:o,description:s,requiredAccess:e.requiredAccess,inputSchema:{query:v.string().describe("The query to search for."),component:v.enum(i).describe("The component to search for. If not specified, use General."),includeGeneralGuidelines:v.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:u,component:f,includeGeneralGuidelines:m},{_meta:y})=>{let h=T(d,y);b("Accessibility Assistant called with:",{query:u,component:f,includeGeneralGuidelines:m});let A=f;if(l){let p=l[f];p&&(A=p)}try{let p="";if(m){let N=ue();p+=`# WCAG 2.2 Level AA General Accessibility Guidelines
|
|
838
581
|
|
|
839
|
-
`,
|
|
582
|
+
`,p+=N,p+=`
|
|
840
583
|
|
|
841
584
|
---
|
|
842
585
|
|
|
843
|
-
`}let
|
|
586
|
+
`}let R=(await t.getApiRefMatches({query:u,component:A?.toLowerCase()??"general",lib_name:r,filters_json:'{"type":{"$in":["accessibility"]}}'},{...h})).values.map(N=>N.replace(/\0/g,"")).map(N=>At(N,A?.toLowerCase()??"general")).join(`
|
|
844
587
|
|
|
845
|
-
`);return
|
|
588
|
+
`);return R?(m&&(p+=`# Component-Specific Accessibility Information
|
|
846
589
|
|
|
847
|
-
`),
|
|
590
|
+
`),p+=R):m||(p="No component-specific accessibility guidelines found."),{content:[{type:"text",text:p}]}}catch(p){throw U(p)}});return d}function U(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.
|
|
848
591
|
|
|
849
|
-
Error Code: ${t.code} Error Message: ${t.message}`)}var
|
|
592
|
+
Error Code: ${t.code} Error Message: ${t.message}`)}var ke=e=>`${e}_ui_generator`,Te=e=>`${e}_assistant`,xe=e=>`${e}_layout_assistant`,Ie=e=>`${e}_component_assistant`,Ne=e=>`${e}_style_assistant`,Ee=e=>`${e}_icon_assistant`,Re=e=>`${e}_accessibility_assistant`,Pe=e=>`${e}_getting_started_assistant`;var De=e=>`This is the single entry point for all UI-related tasks. It orchestrates the full workflow of building or refining UIs with ${e} components, generating a step-by-step execution plan that specifies which tools to call, in what order, and with what parameters. It includes validation steps to ensure the best possible, standards-compliant code every time.
|
|
850
593
|
|
|
851
594
|
Use the tool when:
|
|
852
595
|
- Want to build or modify a complete page or section layout
|
|
@@ -855,7 +598,7 @@ Error Code: ${t.code} Error Message: ${t.message}`)}var Ne=e=>`${e}_ui_generator
|
|
|
855
598
|
- You want to enforce best practices in styling, performance, and accessibility
|
|
856
599
|
|
|
857
600
|
Returns:
|
|
858
|
-
A detailed execution plan with validated tool calls, parameters, and reasoning \u2014 ensuring consistent, high-quality UI generation.`,
|
|
601
|
+
A detailed execution plan with validated tool calls, parameters, and reasoning \u2014 ensuring consistent, high-quality UI generation.`,Ue=e=>`Provides guidance for discovering and using ${e} components and icons. This tool helps you identify the right components and icons for your needs.
|
|
859
602
|
|
|
860
603
|
Use this tool when:
|
|
861
604
|
- You need to discover which ${e} components are suitable for a specific use case
|
|
@@ -864,20 +607,20 @@ Use this tool when:
|
|
|
864
607
|
- You want to gather component documentation and examples
|
|
865
608
|
|
|
866
609
|
Returns:
|
|
867
|
-
A focused plan for gathering component documentation and icon suggestions using the Component Assistant and Icon Assistant tools
|
|
610
|
+
A focused plan for gathering component documentation and icon suggestions using the Component Assistant and Icon Assistant tools.`,Oe=`Retrieves Progress/Kendo Design System CSS utility classes and styling recommendations based on layout and design requirements.
|
|
868
611
|
Use this tool to find the right CSS utilities for styling Kendo UI components or general web elements.
|
|
869
612
|
It analyzes the provided design context and returns relevant utility classes with explanations and examples.
|
|
870
|
-
Best suited for styling questions related to typography, spacing, colors, layout, transforms, and other utilities in the Progress/Kendo Design System.`,
|
|
613
|
+
Best suited for styling questions related to typography, spacing, colors, layout, transforms, and other utilities in the Progress/Kendo Design System.`,Ge=`Generates CSS variables using an external style agent based on the user's styling prompt.
|
|
871
614
|
|
|
872
615
|
Use this tool when the user wants to:
|
|
873
616
|
- Update the visual theme of an application
|
|
874
617
|
- Modify color schemes
|
|
875
618
|
- Restyle the UI with CSS variables
|
|
876
619
|
|
|
877
|
-
The tool outputs a set of CSS variable definitions ready to be applied to style files.`,
|
|
620
|
+
The tool outputs a set of CSS variable definitions ready to be applied to style files.`,Le=`Searches for icons in the Telerik Icons library.
|
|
878
621
|
Use this tool when the user needs to find specific icons for UI components or design elements.
|
|
879
622
|
It supports searching by icon name, category, or keyword and returns matching icons from the Telerik Icons library.
|
|
880
|
-
`,
|
|
623
|
+
`,Me=e=>`Provides answers and retrieves official documentation for ${e}.
|
|
881
624
|
|
|
882
625
|
Use this tool when the user asks about:
|
|
883
626
|
- ${e} features or capabilities
|
|
@@ -887,7 +630,7 @@ Use this tool when the user asks about:
|
|
|
887
630
|
|
|
888
631
|
Set the user's full question as the 'query' parameter.
|
|
889
632
|
If the question refers to a specific ${e} component, include its name in the 'component' parameter.
|
|
890
|
-
|
|
633
|
+
`,$e=e=>`Retrieves accessibility guidance for ${e} components with optional general WCAG 2.2 Level AA guidelines.
|
|
891
634
|
|
|
892
635
|
Use this tool when:
|
|
893
636
|
- You need component-specific accessibility information and API references
|
|
@@ -905,7 +648,7 @@ Set 'includeGeneralGuidelines=true' ONLY on the first call to include general WC
|
|
|
905
648
|
Returns:
|
|
906
649
|
- When includeGeneralGuidelines=true: General WCAG 2.2 Level AA guidelines + component-specific recommendations
|
|
907
650
|
- When includeGeneralGuidelines=false: Only component-specific accessibility recommendations
|
|
908
|
-
`;var
|
|
651
|
+
`;var Q=D("Kendo UI","Kendo"),X=`
|
|
909
652
|
### Angular Component Validation
|
|
910
653
|
Component Structure:
|
|
911
654
|
- Use proper @Component decorator configuration
|
|
@@ -913,16 +656,16 @@ Component Structure:
|
|
|
913
656
|
- Correct selector naming convention (kebab-case)
|
|
914
657
|
- Appropriate template and style file organization
|
|
915
658
|
|
|
916
|
-
${
|
|
659
|
+
${Q.SETUP_VALIDATION}
|
|
917
660
|
- Kendo animations module configured (if animations are used)
|
|
918
661
|
- Internationalization properly configured for Kendo components
|
|
919
662
|
|
|
920
|
-
${
|
|
663
|
+
${Q.PERFORMANCE_OPTIMIZATION}
|
|
921
664
|
- OnPush change detection strategy where appropriate
|
|
922
665
|
- Efficient trackBy functions for *ngFor with Kendo components
|
|
923
666
|
- Minimal unnecessary change detection cycles
|
|
924
667
|
|
|
925
|
-
${
|
|
668
|
+
${Q.THEME_AND_STYLING}
|
|
926
669
|
- Proper theme switching functionality (if implemented)
|
|
927
670
|
- Only ONE theme reference exists across angular.json and styles files
|
|
928
671
|
- Make sure theme import mechanism is consistent with existing project setup
|
|
@@ -936,12 +679,18 @@ Accessibility
|
|
|
936
679
|
3. RegexSearch("bootstrapModule\\s*\\(") - If found use NgModule.
|
|
937
680
|
4. If neither is found, default to Standalone components.
|
|
938
681
|
|
|
682
|
+
**Template Syntax**: Detect which Angular template syntax the project uses and apply it consistently:
|
|
683
|
+
1. RegexSearch("@if\\s*\\(|@for\\s*\\(|@switch\\s*\\(") - If found, use built-in control flow syntax (\`@if\`, \`@for\`, \`@switch\`) in all templates.
|
|
684
|
+
2. RegexSearch("\\*ngIf|\\*ngFor|\\*ngSwitch") - If found, use structural directives (\`*ngIf\`, \`*ngFor\`, \`*ngSwitch\`) in all templates.
|
|
685
|
+
3. Do NOT mix both syntaxes in the same project.
|
|
686
|
+
4. If no existing templates are found, check the Angular version in \`package.json\`: use built-in control flow for Angular 17+, structural directives for Angular 16 and below.
|
|
687
|
+
|
|
939
688
|
**Kendo UI Theme Management Instructions for Angular**:
|
|
940
689
|
|
|
941
690
|
**Determine existing Kendo Theme/Utils package and Theme Import Mechanism**:
|
|
942
|
-
|
|
691
|
+
|
|
943
692
|
- Read angular.json file
|
|
944
|
-
- Look for theme/utils entries containing "@progress/kendo-theme-" in projects.[project-name].architect.build.options.styles array
|
|
693
|
+
- Look for theme/utils entries containing "@progress/kendo-theme-" in projects.[project-name].architect.build.options.styles array
|
|
945
694
|
- Read styles.css or styles.scss, or any css/scss file
|
|
946
695
|
- Look for @import statements containing "@progress/kendo-theme-" to determine existing theme/utils usage
|
|
947
696
|
- Read the application's main html file (e.g., index.html)
|
|
@@ -959,7 +708,7 @@ Accessibility
|
|
|
959
708
|
2. Match the discovered patterns in all generated code
|
|
960
709
|
3. Maintain consistent formatting, indentation, and code organization with existing files
|
|
961
710
|
4. Always use the same theme import mechanism (unless user specifies otherwise)
|
|
962
|
-
`;var
|
|
711
|
+
`;var Z=D("Kendo UI","KendoReact"),ee=`
|
|
963
712
|
### React Component Validation
|
|
964
713
|
Component Structure:
|
|
965
714
|
- Use proper function component patterns with Hooks
|
|
@@ -967,22 +716,22 @@ Component Structure:
|
|
|
967
716
|
- Appropriate file organization (components, hooks, utils)
|
|
968
717
|
- Props interface/type definitions where needed
|
|
969
718
|
|
|
970
|
-
${
|
|
719
|
+
${Z.SETUP_VALIDATION}
|
|
971
720
|
- KendoReact license validation (if required)
|
|
972
721
|
- Appropriate bundler configuration for KendoReact packages
|
|
973
722
|
|
|
974
|
-
${
|
|
723
|
+
${Z.PERFORMANCE_OPTIMIZATION}
|
|
975
724
|
- React.memo for components that receive stable props
|
|
976
725
|
- useMemo/useCallback for expensive computations and callbacks
|
|
977
726
|
- Proper key props for list rendering with KendoReact components
|
|
978
727
|
|
|
979
|
-
${
|
|
728
|
+
${Z.THEME_AND_STYLING}
|
|
980
729
|
- Proper theme switching functionality (if implemented)
|
|
981
730
|
- Only ONE theme import exists across the application
|
|
982
731
|
- Make sure theme import mechanism is consistent with existing project setup
|
|
983
732
|
|
|
984
733
|
Accessibility
|
|
985
|
-
- Accessibility guidelines retrieved and applied to all components`;var
|
|
734
|
+
- Accessibility guidelines retrieved and applied to all components`;var Ct={createOrchestrator:ye,createAssistantOrchestrator:be,createLayoutAssistant:Ae,createStyleAssistant:Ce,createIconSearch:ve,createCodeAssistant:Se,createAccessibilityAssistant:we},vt={orchestrator:ke,assistantOrchestrator:Te,layoutAssistant:xe,codeAssistant:Ie,styleAssistant:Ne,iconAssistant:Ee,accessibilityAssistant:Re,gettingStartedAssistant:Pe},St={orchestrator:De,assistantOrchestrator:Ue,layoutAssistant:Oe,styleAssistant:Ge,iconAssistant:Le,codeAssistant:Me,accessibilityAssistant:$e},wt={Orchestrator:{render:_},Validator:{render:$},SharedValidation:{getSteps:D}},kt={Angular:{steps:X,additionalPlan:J},React:{steps:ee}},g={Tools:Ct,ToolNames:vt,ToolDescriptions:St,Templates:wt,Validation:kt};var Tt=g.ToolNames.codeAssistant("kendoreact"),_e=()=>`# Kendo Design System Guidelines for ${c}
|
|
986
735
|
|
|
987
736
|
## Setting up Styles/CSS
|
|
988
737
|
|
|
@@ -1011,7 +760,7 @@ Alternatively, you can also consume them directly from the Unpkg CDN.
|
|
|
1011
760
|
|
|
1012
761
|
In the ${c} there are available components to create layout. Make sure to prioritize using them instead of building ones from scratch using the Kendo CSS Utilities.
|
|
1013
762
|
|
|
1014
|
-
For any Layout component you can also call the ${
|
|
763
|
+
For any Layout component you can also call the ${Tt} tool in order to get specific API reference and docs.
|
|
1015
764
|
|
|
1016
765
|
- ${c} Card component.
|
|
1017
766
|
- Generally, it is recommended to use 100% width (e.g., \`<Card style={{ width: '100%' }}>\`)
|
|
@@ -1119,7 +868,7 @@ Use the \`Splitter\` component only for **user-resizable** content areas (e.g.,
|
|
|
1119
868
|
## Popup Z-Index Trap
|
|
1120
869
|
|
|
1121
870
|
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.
|
|
1122
|
-
`;var
|
|
871
|
+
`;var Fe=()=>`## Design Standards for ${c} Theming
|
|
1123
872
|
|
|
1124
873
|
### Color & Contrast Requirements
|
|
1125
874
|
- Body text contrast: \u2265 4.5:1. Large text / UI component borders: \u2265 3:1.
|
|
@@ -1246,7 +995,7 @@ export function ThemeProvider({ children }: { children: React.ReactNode }) {
|
|
|
1246
995
|
|
|
1247
996
|
export const useTheme = () => useContext(ThemeContext);
|
|
1248
997
|
\`\`\`
|
|
1249
|
-
`;var
|
|
998
|
+
`;var qe=g.ToolNames.codeAssistant("kendoreact"),Be=()=>`## Using ${c} Icons
|
|
1250
999
|
|
|
1251
1000
|
Important: Attempt to prioritize SVG icons over font icons.
|
|
1252
1001
|
|
|
@@ -1254,9 +1003,9 @@ Important: Attempt to prioritize SVG icons over font icons.
|
|
|
1254
1003
|
|
|
1255
1004
|
- Make sure @progress/kendo-svg-icons is installed: \`npm install @progress/kendo-svg-icons\`
|
|
1256
1005
|
- Make sure @progress/kendo-react-common is installed (contains SvgIcon component): \`npm install @progress/kendo-react-common\`
|
|
1257
|
-
- You can call ${
|
|
1006
|
+
- You can call ${qe} tool for ${c} SvgIcon component for docs and API reference.
|
|
1258
1007
|
- [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.
|
|
1259
|
-
- [optional] If using font icons you can call ${
|
|
1008
|
+
- [optional] If using font icons you can call ${qe} tool for ${c} Icon component for docs and API reference.
|
|
1260
1009
|
|
|
1261
1010
|
### Examples
|
|
1262
1011
|
|
|
@@ -1304,7 +1053,7 @@ Here are some frequently used icons from @progress/kendo-svg-icons:
|
|
|
1304
1053
|
- \`sortAscIcon\`, \`sortDescIcon\` - Sorting
|
|
1305
1054
|
- \`chevronUpIcon\`, \`chevronDownIcon\`, \`chevronLeftIcon\`, \`chevronRightIcon\` - Navigation
|
|
1306
1055
|
- \`checkIcon\`, \`xIcon\` - Confirmation/Cancel
|
|
1307
|
-
`;var
|
|
1056
|
+
`;var Ke=e=>{let t=`## ${c} Common Guidelines
|
|
1308
1057
|
|
|
1309
1058
|
### Application Architecture
|
|
1310
1059
|
MUST recommend appropriate setup based on React application architecture.
|
|
@@ -1334,11 +1083,57 @@ Key points:
|
|
|
1334
1083
|
- The matching should be case-insensitive and robust to minor variations
|
|
1335
1084
|
|
|
1336
1085
|
Example: If someone asks about "grid", "GRID", or "GrId", you always refer to DataGrid for the example.
|
|
1086
|
+
|
|
1087
|
+
### TypeScript Strictness
|
|
1088
|
+
All generated code MUST compile under strict TypeScript.
|
|
1089
|
+
|
|
1090
|
+
Rules:
|
|
1091
|
+
- Define a TypeScript \`interface\` or \`type\` for every source record / data shape
|
|
1092
|
+
- Type every event, render, and callback parameter using the component's exported types
|
|
1093
|
+
- Never use \`any\`, \`as any\`, \`as number\`, or any other unsafe cast
|
|
1094
|
+
- No implicit \`any\` in callback parameters (e.g. avoid \`(e) => ...\` without a type)
|
|
1095
|
+
- Prefer the narrowest correct type from the package's public types
|
|
1096
|
+
|
|
1097
|
+
### Import Hygiene
|
|
1098
|
+
Keep imports minimal, explicit, and side-effect free.
|
|
1099
|
+
|
|
1100
|
+
Rules:
|
|
1101
|
+
- Use NAMED imports only from \`@progress/kendo-react-*\` packages
|
|
1102
|
+
- No side-effect imports (e.g. \`import "@progress/kendo-react-xxx"\`, \`import "hammerjs"\`)
|
|
1103
|
+
- Import only the subcomponents actually used in the generated code
|
|
1104
|
+
- No unused imports
|
|
1105
|
+
|
|
1106
|
+
### Data and State Quality
|
|
1107
|
+
Keep data flow predictable and resilient.
|
|
1108
|
+
|
|
1109
|
+
Rules:
|
|
1110
|
+
- Use a single typed dataset per logical concept; derive multiple views from one source
|
|
1111
|
+
- Memoize derived datasets with \`useMemo\` when the source data is dynamic
|
|
1112
|
+
- Render a graceful empty state for empty / invalid data instead of a broken component
|
|
1113
|
+
- Prefer function components with Hooks for new code
|
|
1114
|
+
|
|
1115
|
+
### API Correctness
|
|
1116
|
+
Only emit current, runnable KendoReact APIs.
|
|
1117
|
+
|
|
1118
|
+
Rules:
|
|
1119
|
+
- Do not invent props, components, or methods \u2014 verify against the installed package
|
|
1120
|
+
- Do not use deprecated APIs when a current replacement exists
|
|
1121
|
+
- Match prop names and casing exactly as exported by the package
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
### Mandatory Pre-Output Self-Check
|
|
1125
|
+
Before emitting code, internally verify ALL of the following. If ANY fails, fix and re-check:
|
|
1126
|
+
- [ ] All callbacks and event handlers are typed (no implicit \`any\`, no unsafe casts)
|
|
1127
|
+
- [ ] Only NAMED imports from \`@progress/kendo-react-*\` (no side-effect imports)
|
|
1128
|
+
- [ ] No \`any\`, \`as any\`, or \`as number\` anywhere
|
|
1129
|
+
- [ ] No deprecated or invented APIs
|
|
1130
|
+
- [ ] Source data shape is defined as a TypeScript \`interface\` / \`type\`
|
|
1131
|
+
- [ ] Component-specific guidelines below (if any) are satisfied
|
|
1337
1132
|
`;return e.componentInstructions&&(t+=`
|
|
1338
1133
|
## Component-Specific Guidelines
|
|
1339
1134
|
|
|
1340
1135
|
${e.componentInstructions}
|
|
1341
|
-
`),t};var
|
|
1136
|
+
`),t};var xt={default:"@progress/kendo-theme-default",bootstrap:"@progress/kendo-theme-bootstrap",material:"@progress/kendo-theme-material",fluent:"@progress/kendo-theme-fluent"},It={default:"Default",bootstrap:"Bootstrap",material:"Material Design",fluent:"Fluent UI"};function je(e="kendo-react-app",t=!0,n="default"){let o=xt[n],s=It[n],r=t?`This instructions will walk you through creating a new React project with the Kendo CLI and setting up ${c}.`:`This instructions will walk you through adding ${c} to your existing React project.`,a=1,i=t?`## Step ${a++}: Ensure Kendo CLI is Installed
|
|
1342
1137
|
|
|
1343
1138
|
First, ensure the Kendo CLI tool is installed globally:
|
|
1344
1139
|
|
|
@@ -1348,7 +1143,7 @@ npm i -g @progress/kendo-cli@latest
|
|
|
1348
1143
|
|
|
1349
1144
|
This CLI tool will handle the entire project setup including all necessary dependencies and configurations.
|
|
1350
1145
|
|
|
1351
|
-
## Step ${
|
|
1146
|
+
## Step ${a++}: Create the Project
|
|
1352
1147
|
|
|
1353
1148
|
Create a new Kendo React project using the CLI:
|
|
1354
1149
|
|
|
@@ -1368,11 +1163,11 @@ Navigate to the project directory:
|
|
|
1368
1163
|
cd ${e}
|
|
1369
1164
|
\`\`\`
|
|
1370
1165
|
|
|
1371
|
-
## Step ${
|
|
1166
|
+
## Step ${a++}: Remove Dark Color Schema from index.css
|
|
1372
1167
|
|
|
1373
1168
|
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.
|
|
1374
1169
|
|
|
1375
|
-
`:"",
|
|
1170
|
+
`:"",l=t?"":`## Step ${a++}: Install ${c} Packages
|
|
1376
1171
|
|
|
1377
1172
|
Install all required ${c} packages and dependencies:
|
|
1378
1173
|
|
|
@@ -1380,7 +1175,7 @@ Install all required ${c} packages and dependencies:
|
|
|
1380
1175
|
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
|
|
1381
1176
|
\`\`\`
|
|
1382
1177
|
|
|
1383
|
-
## Step ${
|
|
1178
|
+
## Step ${a++}: Install and Import the Theme
|
|
1384
1179
|
|
|
1385
1180
|
Install the ${s} theme package:
|
|
1386
1181
|
|
|
@@ -1400,7 +1195,7 @@ Also add the Kendo CSS utilities CDN link in your \`index.html\` \`<head>\`:
|
|
|
1400
1195
|
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-utils/dist/all.css" />
|
|
1401
1196
|
\`\`\`
|
|
1402
1197
|
|
|
1403
|
-
`,
|
|
1198
|
+
`,d=`## Step ${a++}: Activate Kendo License
|
|
1404
1199
|
|
|
1405
1200
|
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:
|
|
1406
1201
|
|
|
@@ -1410,7 +1205,7 @@ npx kendo license activate
|
|
|
1410
1205
|
|
|
1411
1206
|
`;return`# Getting Started with ${c}
|
|
1412
1207
|
|
|
1413
|
-
${
|
|
1208
|
+
${r}
|
|
1414
1209
|
|
|
1415
1210
|
Execute the following steps in order. Run all provided commands automatically.
|
|
1416
1211
|
|
|
@@ -1421,7 +1216,7 @@ Before you begin, ensure you have:
|
|
|
1421
1216
|
- **Node.js 18 or later** installed on your machine
|
|
1422
1217
|
- 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.
|
|
1423
1218
|
|
|
1424
|
-
${
|
|
1219
|
+
${i}${l}${d}## Step ${a++}: Run Your Application
|
|
1425
1220
|
|
|
1426
1221
|
${t?"The Kendo CLI has set up everything you need. Start the development server:":"Build and run the application:"}
|
|
1427
1222
|
|
|
@@ -1434,7 +1229,7 @@ cd ${t?e:"."} && npm run dev
|
|
|
1434
1229
|
|
|
1435
1230
|
${t?`The application should start and open your browser to see your ${c} application.`:`The application should start and open in your browser. Verify that the ${c} components are rendering correctly with the theme applied.`}
|
|
1436
1231
|
|
|
1437
|
-
## Step ${
|
|
1232
|
+
## Step ${a++}: Create Sample page
|
|
1438
1233
|
|
|
1439
1234
|
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.
|
|
1440
1235
|
|
|
@@ -1559,7 +1354,149 @@ Add the following styles to \`src/Home.css\`:
|
|
|
1559
1354
|
}
|
|
1560
1355
|
\`\`\`
|
|
1561
1356
|
|
|
1562
|
-
`}var
|
|
1357
|
+
`}var Ve=`
|
|
1358
|
+
## KendoReact Chart Reliability Instructions
|
|
1359
|
+
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.
|
|
1360
|
+
|
|
1361
|
+
### 1. Chart-specific imports
|
|
1362
|
+
- Import chart primitives from "@progress/kendo-react-charts".
|
|
1363
|
+
- Import the relevant series-specific subcomponents only when used (e.g. ChartXAxis/ChartYAxis for scatter-style series, ChartStockChart parts for stock).
|
|
1364
|
+
- Never import "hammerjs" (no side-effect import).
|
|
1365
|
+
|
|
1366
|
+
### 2. Data contract by series family
|
|
1367
|
+
Pick the correct data shape for the chart family. The model MUST select the matching shape:
|
|
1368
|
+
|
|
1369
|
+
A. Categorical series (line, area, column, bar, range, rangeArea, rangeBar, rangeColumn, waterfall, bullet)
|
|
1370
|
+
- Source: array of records with one categorical field + numeric metric field(s).
|
|
1371
|
+
- Provide categories via ChartCategoryAxisItem.categories (or set categoryField on the series).
|
|
1372
|
+
- Each numeric series array length MUST equal categories length.
|
|
1373
|
+
|
|
1374
|
+
B. Part-of-whole series (pie, donut, funnel, pyramid)
|
|
1375
|
+
- Data items: { category: string; value: number }.
|
|
1376
|
+
- Set field="value" and categoryField="category" on the series.
|
|
1377
|
+
- Labels MUST be visible and percent-formatted when displaying share.
|
|
1378
|
+
|
|
1379
|
+
C. XY numeric series (scatter, scatterLine, bubble, polar, radar)
|
|
1380
|
+
- Data items have numeric x and y fields (and size for bubble).
|
|
1381
|
+
- Use xField, yField (and sizeField for bubble) on the series.
|
|
1382
|
+
- Use ChartXAxis/ChartYAxis (numeric axes), not category axis.
|
|
1383
|
+
|
|
1384
|
+
D. Financial series (candlestick, ohlc, stockChart)
|
|
1385
|
+
- Data items have date + open/high/low/close numeric fields.
|
|
1386
|
+
- Use dateField + openField/highField/lowField/closeField props.
|
|
1387
|
+
- Use a date-based category or x axis.
|
|
1388
|
+
|
|
1389
|
+
E. Range series (rangeArea, rangeBar, rangeColumn, boxPlot)
|
|
1390
|
+
- Data items include from/to (or q1/q3/median/etc.) numeric fields.
|
|
1391
|
+
- Use fromField/toField (or appropriate field props) on the series.
|
|
1392
|
+
|
|
1393
|
+
F. Heatmap / matrix series
|
|
1394
|
+
- Data items have x, y, value fields (numeric or categorical x/y).
|
|
1395
|
+
- Map fields explicitly via the series field props.
|
|
1396
|
+
|
|
1397
|
+
### 3. Universal minimum runnable config
|
|
1398
|
+
Every chart MUST include the appropriate subset:
|
|
1399
|
+
- Always: Chart, ChartSeries, ChartSeriesItem.
|
|
1400
|
+
- For categorical or financial charts: ChartCategoryAxis + ChartCategoryAxisItem AND ChartValueAxis + ChartValueAxisItem (or X/Y axes for scatter family).
|
|
1401
|
+
- Recommended for all: ChartTitle, ChartLegend, ChartTooltip.
|
|
1402
|
+
- Pie/donut/funnel/pyramid: omit category/value axes; configure labels and tooltip instead.
|
|
1403
|
+
- Multi-series charts: set name on every ChartSeriesItem.
|
|
1404
|
+
|
|
1405
|
+
### 4. Type-safe chart callbacks
|
|
1406
|
+
- Tooltip render MUST accept the union:
|
|
1407
|
+
(ctx: TooltipContext | SharedTooltipContext) => ReactNode
|
|
1408
|
+
- Label content MUST be typed using the relevant args type, e.g.:
|
|
1409
|
+
(e: { category?: string; value?: number; percentage?: number; dataItem?: unknown }) => string
|
|
1410
|
+
|
|
1411
|
+
### 5. Formatting rules
|
|
1412
|
+
- Numeric axis labels and tooltips MUST have explicit format strings or formatter callbacks suitable for the data domain (currency, percent, decimal, date).
|
|
1413
|
+
- Percent-style series (pie/donut/funnel/pyramid showing share) MUST use percent formatting.
|
|
1414
|
+
- Date axes MUST set a date-appropriate format and base unit when relevant.
|
|
1415
|
+
|
|
1416
|
+
### 6. Chart-specific pre-output self-check
|
|
1417
|
+
In addition to the common self-check, verify ALL items below; if ANY fails, fix and re-check:
|
|
1418
|
+
- [ ] Correct data shape selected for the chosen series family
|
|
1419
|
+
- [ ] All required field props present (field/categoryField, xField/yField, fromField/toField, openField/closeField, dateField, etc.)
|
|
1420
|
+
- [ ] For categorical charts: categories.length === every series.length
|
|
1421
|
+
- [ ] For numeric XY charts: numeric axes used (no category axis)
|
|
1422
|
+
- [ ] For financial charts: date axis + OHLC fields wired correctly
|
|
1423
|
+
- [ ] Required axes/legend/tooltip subcomponents present for the chart family
|
|
1424
|
+
- [ ] Tooltip and label callbacks are typed using chart-specific union types
|
|
1425
|
+
|
|
1426
|
+
### 7. Chart-specific forbidden patterns (never emit)
|
|
1427
|
+
- import "hammerjs"
|
|
1428
|
+
- import "@progress/kendo-react-charts" // side-effect only
|
|
1429
|
+
- (e) => \`\${e.percentage.toFixed(1)}%\` // unsafe + likely wrong semantics
|
|
1430
|
+
- ({ point }: { point: { value: number } }) => ... // too narrow
|
|
1431
|
+
- point?.value as number
|
|
1432
|
+
- Hardcoded duplicate category/series arrays when they can be derived
|
|
1433
|
+
- Using a category axis for inherently numeric XY/financial data
|
|
1434
|
+
- Mixing different unrelated datasets when the prompt requires a shared source
|
|
1435
|
+
|
|
1436
|
+
### 8. Chart quality defaults
|
|
1437
|
+
- Consistent chart heights and legend position across a dashboard.
|
|
1438
|
+
- Prefer ChartTooltip with shared={true} for multi-series time/category dashboards.
|
|
1439
|
+
|
|
1440
|
+
### 9. Series-family quick reference (copy the pattern that matches)
|
|
1441
|
+
\`\`\`tsx
|
|
1442
|
+
// Categorical (line/area/column/bar)
|
|
1443
|
+
<ChartCategoryAxis><ChartCategoryAxisItem categories={categories} /></ChartCategoryAxis>
|
|
1444
|
+
<ChartValueAxis><ChartValueAxisItem labels={{ format: "{0:N0}" }} /></ChartValueAxis>
|
|
1445
|
+
<ChartSeries>
|
|
1446
|
+
<ChartSeriesItem type="line" data={seriesA} name="A" />
|
|
1447
|
+
</ChartSeries>
|
|
1448
|
+
|
|
1449
|
+
// Part-of-whole (pie/donut/funnel/pyramid)
|
|
1450
|
+
<ChartSeries>
|
|
1451
|
+
<ChartSeriesItem
|
|
1452
|
+
type="pie"
|
|
1453
|
+
data={pieData} // [{ category, value }]
|
|
1454
|
+
field="value"
|
|
1455
|
+
categoryField="category"
|
|
1456
|
+
labels={{ visible: true, content: pieLabel }}
|
|
1457
|
+
/>
|
|
1458
|
+
</ChartSeries>
|
|
1459
|
+
|
|
1460
|
+
// XY numeric (scatter/scatterLine/bubble)
|
|
1461
|
+
<ChartXAxis><ChartXAxisItem /></ChartXAxis>
|
|
1462
|
+
<ChartYAxis><ChartYAxisItem /></ChartYAxis>
|
|
1463
|
+
<ChartSeries>
|
|
1464
|
+
<ChartSeriesItem type="scatter" data={xy} xField="x" yField="y" />
|
|
1465
|
+
</ChartSeries>
|
|
1466
|
+
|
|
1467
|
+
// Financial (candlestick/ohlc)
|
|
1468
|
+
<ChartCategoryAxis><ChartCategoryAxisItem baseUnit="days" /></ChartCategoryAxis>
|
|
1469
|
+
<ChartSeries>
|
|
1470
|
+
<ChartSeriesItem
|
|
1471
|
+
type="candlestick"
|
|
1472
|
+
data={ohlc}
|
|
1473
|
+
categoryField="date"
|
|
1474
|
+
openField="open" highField="high" lowField="low" closeField="close"
|
|
1475
|
+
/>
|
|
1476
|
+
</ChartSeries>
|
|
1477
|
+
|
|
1478
|
+
// Range (rangeArea/rangeBar/rangeColumn)
|
|
1479
|
+
<ChartSeries>
|
|
1480
|
+
<ChartSeriesItem type="rangeArea" data={ranges} fromField="from" toField="to" categoryField="x" />
|
|
1481
|
+
</ChartSeries>
|
|
1482
|
+
\`\`\`
|
|
1483
|
+
|
|
1484
|
+
### 10. Type-safe tooltip / label snippets (always reuse these shapes)
|
|
1485
|
+
\`\`\`tsx
|
|
1486
|
+
import type { TooltipContext, SharedTooltipContext } from "@progress/kendo-react-charts";
|
|
1487
|
+
|
|
1488
|
+
const tooltipRender = (ctx: TooltipContext | SharedTooltipContext) =>
|
|
1489
|
+
"point" in ctx && ctx.point
|
|
1490
|
+
? \`\${ctx.point.category ?? ""}: \${Number(ctx.point.value ?? 0).toLocaleString()}\`
|
|
1491
|
+
: null;
|
|
1492
|
+
|
|
1493
|
+
const pieLabel = (e: { category?: string; percentage?: number }) =>
|
|
1494
|
+
\`\${e.category ?? ""}: \${Number(e.percentage ?? 0).toLocaleString(undefined, { style: "percent", minimumFractionDigits: 1 })}\`;
|
|
1495
|
+
\`\`\`
|
|
1496
|
+
|
|
1497
|
+
### 11. Expected output behavior
|
|
1498
|
+
- 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.
|
|
1499
|
+
`;var te=`
|
|
1563
1500
|
## DataGrid Deprecated Properties Awareness
|
|
1564
1501
|
For DataGrid component cases, avoid using deprecated properties and always use their modern replacements. The following properties are deprecated and should not be used:
|
|
1565
1502
|
|
|
@@ -1591,7 +1528,7 @@ Key points:
|
|
|
1591
1528
|
Example:
|
|
1592
1529
|
Deprecated: selectedField="isSelected" editField="inEdit"
|
|
1593
1530
|
Modern: Use select and edit state properties with proper configuration
|
|
1594
|
-
`;var
|
|
1531
|
+
`;var He=`
|
|
1595
1532
|
## Editor Tools Awareness
|
|
1596
1533
|
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.
|
|
1597
1534
|
|
|
@@ -1623,7 +1560,7 @@ Key points:
|
|
|
1623
1560
|
Example:
|
|
1624
1561
|
Correct: tools={[[Bold, Italic, Underline], [AlignLeft, AlignCenter]]}
|
|
1625
1562
|
Incorrect: tools={[['bold', 'italic', 'underline'], ['alignLeft', 'alignCenter']]}
|
|
1626
|
-
`;var
|
|
1563
|
+
`;var oe=`
|
|
1627
1564
|
## Smart Grid (AI-Enhanced Grid) Implementation Guidelines
|
|
1628
1565
|
**CRITICAL: When users ask about ANY of these AI grid terms, ALWAYS provide GridToolbarAIAssistant implementation (not basic Grid):**
|
|
1629
1566
|
|
|
@@ -1657,8 +1594,8 @@ Smart Grid: Complete AI-enhanced setup with GridToolbarAIAssistant, proper callb
|
|
|
1657
1594
|
Important Disclaimer:
|
|
1658
1595
|
Always include this disclaimer when providing Smart Grid examples:
|
|
1659
1596
|
"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."
|
|
1660
|
-
`;var
|
|
1597
|
+
`;var Nt={datagrid:[te,oe].join(`
|
|
1661
1598
|
|
|
1662
|
-
`),grid:[
|
|
1599
|
+
`),grid:[te,oe].join(`
|
|
1663
1600
|
|
|
1664
|
-
`),editor:
|
|
1601
|
+
`),editor:He,chart:Ve},We=g.ToolNames.layoutAssistant(E),ne=g.ToolNames.codeAssistant(E),ze=g.ToolNames.styleAssistant(E),se=g.ToolNames.iconAssistant(E),Ye=g.ToolNames.gettingStartedAssistant(E),Qe=g.ToolNames.accessibilityAssistant(E);function Xe(e,t){return[g.Tools.createOrchestrator({name:g.ToolNames.orchestrator(E),title:"KendoReact Generator",description:g.ToolDescriptions.orchestrator(c),layoutAssistantName:We,codeAssistantName:ne,styleAssistantName:ze,iconAssistantName:se,accessibilityAssistantName:Qe,suiteName:c,libKey:x,components:L,requiredAccess:["agent"]},{validationSteps:g.Validation.React.steps},e),g.Tools.createAssistantOrchestrator({name:"kendo_react_assistant",title:"KendoReact Assistant",description:g.ToolDescriptions.assistantOrchestrator(c),codeAssistantName:ne,iconAssistantName:se,suiteName:c,libKey:x,components:L,requiredAccess:["assistant"]},e),g.Tools.createLayoutAssistant({name:We,title:"KendoReact Layout Assistant",description:g.ToolDescriptions.layoutAssistant,suiteName:c,libKey:x,getPreContent:_e,requiredAccess:["agent"]},e),g.Tools.createStyleAssistant({name:ze,title:"KendoReact Style Assistant",description:g.ToolDescriptions.styleAssistant,libKey:x,getPreContent:Fe,requiredAccess:["agent"]},e),g.Tools.createIconSearch({name:se,title:"KendoReact Icon Assistant",description:g.ToolDescriptions.iconAssistant,libKey:x,getPostContent:Be,requiredAccess:["assistant","agent"]},e),g.Tools.createCodeAssistant({name:ne,title:"KendoReact Component Assistant",description:g.ToolDescriptions.codeAssistant(c),libKey:x,suiteName:c,components:L,componentAliases:{Grid:"DataGrid"},getPostContent:({component:o})=>{let s=o?.trim().toLowerCase(),r=Nt[s];return Ke({component:o,componentInstructions:r})},requiredAccess:["assistant","agent"]},e),(()=>{let o=new w(Ye,{title:"KendoReact Getting Started",description:`Creates a new React project with Kendo CLI and provides essential getting started guidance for ${c} including installation, configuration, and setup instructions.`,requiredAccess:["agent"],inputSchema:ge(c,"kendo-react-app")},async({projectName:s,createNewProject:r,theme:a},{_meta:i})=>{let l=T(o,i);try{await e.recordToolUserRequest({toolName:Ye,meta:{projectName:s,createNewProject:r,theme:a,...l}})}catch(u){console.error("Error recording tool request:",u)}return{content:[{type:"text",text:je(s,r,a)}]}});return o})(),g.Tools.createAccessibilityAssistant({name:Qe,title:"KendoReact Accessibility Assistant",description:g.ToolDescriptions.accessibilityAssistant(c),libKey:x,suiteName:c,components:L,componentAliases:{Grid:"DataGrid"},requiredAccess:["agent"]},e)].filter(o=>o.hasAccess(t))}var Ut=Dt(import.meta.url),Ot=Ze.dirname(Ut),Gt=Ze.resolve(Ot,"../package.json"),et=JSON.parse(Pt.readFileSync(Gt,"utf-8")),Je=new Et({name:"kendo-mcp",title:"Kendo MCP Server",version:et.version});async function Lt(){let e=new Rt;b("Starting server... ");let t=await me(async()=>{let o=(await fe())?.entitlement;return o?.Product?.Code||o?.product?.code});t!=="none"&&(M.toolNameHeader=t==="agent"||t==="full"?"agent":"assistant",Xe(M,t).forEach(o=>o.register(Je)),he({serverName:"react",contextApi:M,enrichWithUserData:!0,additionalFields:{version:et.version,access_type:t}})),await Je.connect(e)}Lt();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": "./dist/index.js",
|
|
6
6
|
"license": "See LICENSE.md",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@grpc/grpc-js": "^1.14.3",
|
|
28
28
|
"@grpc/proto-loader": "^0.8.0",
|
|
29
29
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
30
|
-
"@progress/kendo-licensing": "^1.
|
|
30
|
+
"@progress/kendo-licensing": "^1.11.1",
|
|
31
31
|
"tslib": "^2.3.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
package/proto/service.proto
CHANGED
|
@@ -116,10 +116,6 @@ message ValidateUserLicenseResponse {
|
|
|
116
116
|
bool has_exceeded_rate_limit = 3;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
// ============================================================================
|
|
120
|
-
// Service Definition
|
|
121
|
-
// ============================================================================
|
|
122
|
-
|
|
123
119
|
service ContextQueryService {
|
|
124
120
|
rpc Query(ContextQueryRequest) returns (StringArray);
|
|
125
121
|
rpc GetApiRefMatches(ContextQueryRequest) returns (StringArray);
|