@progress/kendo-angular-mcp 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +10 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import{McpServer as st}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as rt}from"@modelcontextprotocol/sdk/server/stdio.js";import{dirname as He,join as Qe}from"path";import{fileURLToPath as We}from"url";import{loadLicense as qe,decodeLicenseKey as Be,decodeLicenseEvidence as Ge}from"@progress/kendo-licensing/utils";var M=class extends Error{constructor(t){super(t),this.name="LicenseError"}};function Z(e){return e.replace(/^\uFEFF/,"")}async function ee(){let e=null,t=null;try{let o=qe();if(!o.success)throw new M(o.message);try{e=(await Be(o.value)).licenses.find(async r=>!!(await Ge(r)).userId)}catch(n){console.log(n.message)}if(!e)return[Z(o.value),null]}catch(o){return t=o.message||"Unknown error loading license.",[null,t]}return[Z(e),null]}import w from"node:fs";import R from"node:path";var q=!1,I=process.env.DEBUG_LOG_FILE,te=!!(I&&typeof I=="string");if(te){let e=R.resolve(I),t=R.dirname(e);if(t!=="."&&t!==process.cwd()&&!w.existsSync(t))try{w.mkdirSync(t,{recursive:!0})}catch(o){console.error("Error creating log directory:",o)}if(!w.existsSync(e))try{w.writeFileSync(e,"")}catch(o){console.error("Error creating log file:",o)}}else q=!1;q=te&&!!I&&w.existsSync(R.resolve(I));function g(...e){if(q&&I){let n=`${new Date().toISOString()}: ${e.join(" ")}
3
3
  `,r=R.resolve(I);w.appendFile(r,n,s=>{s&&console.error("Error writing to log file:",s)})}}import Ke from"@grpc/proto-loader";import D from"@grpc/grpc-js";import se from"path";import oe from"fs";import{fileURLToPath as Fe}from"url";var Ve=Fe(import.meta.url),je=se.dirname(Ve),re={version:"unknown"},ne=se.resolve(je,"../package.json");oe.existsSync(ne)&&(re=JSON.parse(oe.readFileSync(ne,"utf-8")));function ze(e){return e.replace(/\u2014/g,"--").replace(/\u2013/g,"-").replace(/[^\x20-\x7E]/g,"")}var $=class{constructor(t,o,n){this.contextApiUrl=t;this.protoPath=o;this.options=n;this.toolNameHeader="assistant";let r=Ke.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"),g("Using ContextApi URl:",this.contextApiUrl);let s=D.loadPackageDefinition(r);this.client=new s.ContextQueryService(this.contextApiUrl||"contextapi.telerik.com:443",this.isDev?D.credentials.createInsecure():D.credentials.createSsl())}async getMetadata({meta:t}={meta:{}}){let[o,n]=this.isDev?"fake_license":await ee(),r=process.env.CONTEXTAPI_API_KEY,s=r&&typeof r=="string",a=o&&typeof o=="string";if(!a&&!s&&n)throw new Error(`Failed to authenticate with API key or License key!
4
4
 
5
- License Error: ${n}`);let l=new D.Metadata;if(a)try{l.add("x-license-key",o)}catch(y){throw g("Error adding license key to metadata:",y),new Error(`Failed to use license key: ${y.message}`)}s&&l.add("x-api-key",r),this.options?.libName&&l.add("x-library-name",this.options.libName),l.add("x-tool-name",this.toolNameHeader);let m=JSON.stringify({...t,source:"npm",version:re.version,os:process.platform,node_version:process.version});return l.add("x-request-metadata",ze(m)),l}async query(t){let o=await this.getMetadata();return new Promise((n,r)=>{this.client.query(t,o,(s,a)=>{s?r(new Error(s)):n(a)})})}async queryCssUtils(t){let o=await this.getMetadata();return new Promise((n,r)=>{this.client.cssUtilsSearch(t,o,(s,a)=>{s?(g("Error querying CSS Utils:",s),r(new Error(s))):n(a)})})}async queryIconsSearch(t){let o=await this.getMetadata();return new Promise((n,r)=>{this.client.iconsSearch(t,o,(s,a)=>{s?(g("Error querying Icons Search:",s),r(new Error(s))):n(a)})})}async queryBuildingBlocks(t){let o=await this.getMetadata();return new Promise((n,r)=>{this.client.buildingBlocksSearch(t,o,(s,a)=>{s?(g("Error querying Building Blocks:",s),r(new Error(s))):n(a)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((o,n)=>{this.client.validateUserLicense(null,t,(r,s)=>{r?(g("Error validating user license:",r),n(new Error(r))):o(s)})})}async queryThemeGenerate(t){let o=await this.getMetadata();return new Promise((n,r)=>{this.client.generateTheme(t,o,(s,a)=>{s?(g("Error querying context API/GenerateTheme:",s),r(new Error(s))):n(a)})})}async recordOrchestratorUserRequest({meta:t}){let o=await this.getMetadata({meta:t});return new Promise((n,r)=>{this.client.recordOrchestratorUserRequest(null,o,(s,a)=>{s?(g("Error recording orchestrator user request:",s),r(new Error(s))):n(a)})})}};import{z as B}from"zod";var Pt=B.object({user_id:B.string(),user_email:B.string().email()});import{z as u}from"zod";var Ye=u.object({Product:u.object({Id:u.number().int(),Code:u.string(),Name:u.string()}),License:u.nullable(u.object({Id:u.number().int(),Name:u.string(),Type:u.string(),Active:u.boolean()})),Availability:u.array(u.object({LicenseStart:u.nullable(u.string().datetime()),LicenseEnd:u.nullable(u.string().datetime())})),IsLicenseAvailable:u.optional(u.boolean())}),Rt=u.array(Ye);async function ae(e){let t=process.env.KENDO_MCP_ACCESS;if(t==="true"||t==="1"||t==="full")return"full";if(typeof t=="string"&&(t.toLowerCase()==="agent"||t.toLowerCase()==="assistant"))return t.toLowerCase();let o=await e();return o.toLocaleLowerCase()==="agentic_ui_generator"?"agent":o.toLocaleLowerCase()==="ai_coding_assistants"?"assistant":"none"}var p="Kendo UI for Angular",T="angular",E="kendo",_=["AIPrompt","ActionSheet","AppBar","ArcGauge","AutoComplete","Avatar","Badge","Barcode","BottomNavigation","BreadCrumb","Button","ButtonGroup","Calendar","Card","ChartWizard","Charts","CheckBox","Chip","ChipList","ChunkProgressBar","CircularGauge","CircularProgressBar","ColorGradient","ColorPalette","ColorPicker","ComboBox","ContextMenu","ConversationalUI","DataQuery","DateInput","DateMath","DatePicker","DateRange","DateTimePicker","Diagram","Dialog","DragandDrop","Drawer","Drawing","DropDownButton","DropDownList","DropDownTree","Editor","ExcelExport","ExpansionPanel","FileSaver","FileSelect","Filter","FlatColorPicker","FloatingActionButton","FloatingLabel","Forms","FormField","Gantt","Gauges","General","Grid","GridLayout","Icon","InlineAIPrompt","Label","LinearGauge","ListBox","ListView","Loader","Map","MaskedTextBox","Menu","MultiColumnComboBox","MultiSelect","MultiSelectTree","MultiViewCalendar","Notification","NumericTextBox","OTPInput","Pager","PanelBar","PDFExport","PDFViewer","PivotGrid","Popover","Popup","ProgressBar","QRCode","RadialGauge","RadioButton","RangeSlider","Rating","Ripple","Sankey","Scheduler","ScrollView","Signature","Skeleton","Slider","Sortable","StockChart","Sparkline","SpeechToTextButton","SplitButton","Splitter","Spreadsheet","StackLayout","Stepper","SVGIcon","Switch","TabStrip","TextArea","TextBox","TileLayout","Timeline","TimePicker","ToolBar","Tooltip","TreeList","TreeView","Typography","Upload","Window"],ie=new Map([["actionsheet","@progress/kendo-angular-navigation"],["aiprompt","@progress/kendo-angular-conversational-ui"],["appbar","@progress/kendo-angular-navigation"],["arcgauge","@progress/kendo-angular-gauges"],["autocomplete","@progress/kendo-angular-dropdowns"],["avatar","@progress/kendo-angular-layout"],["badge","@progress/kendo-angular-indicators"],["barcode","@progress/kendo-angular-barcodes"],["bottomnavigation","@progress/kendo-angular-navigation"],["breadcrumb","@progress/kendo-angular-navigation"],["button","@progress/kendo-angular-buttons"],["buttongroup","@progress/kendo-angular-buttons"],["calendar","@progress/kendo-angular-dateinputs"],["card","@progress/kendo-angular-layout"],["chartwizard","@progress/kendo-angular-chart-wizard"],["checkbox","@progress/kendo-angular-inputs"],["chip","@progress/kendo-angular-buttons"],["chiplist","@progress/kendo-angular-buttons"],["chunkprogressbar","@progress/kendo-angular-progressbar"],["circulargauge","@progress/kendo-angular-gauges"],["circularprogressbar","@progress/kendo-angular-progressbar"],["colorgradient","@progress/kendo-angular-inputs"],["colorpalette","@progress/kendo-angular-inputs"],["colorpicker","@progress/kendo-angular-inputs"],["combobox","@progress/kendo-angular-dropdowns"],["contextmenu","@progress/kendo-angular-menu"],["dataquery","@progress/kendo-data-query"],["dateinput","@progress/kendo-angular-dateinputs"],["datemath","@progress/kendo-date-math"],["datepicker","@progress/kendo-angular-dateinputs"],["daterangepicker","@progress/kendo-angular-dateinputs"],["datetimepicker","@progress/kendo-angular-dateinputs"],["diagram","@progress/kendo-angular-diagrams"],["dialog","@progress/kendo-angular-dialog"],["drawer","@progress/kendo-angular-layout"],["drawing","@progress/kendo-drawing"],["dropdownbutton","@progress/kendo-angular-buttons"],["dropdownlist","@progress/kendo-angular-dropdowns"],["dropdowntree","@progress/kendo-angular-dropdowns"],["editor","@progress/kendo-angular-editor"],["excelexport","@progress/kendo-angular-excel-export"],["expansionpanel","@progress/kendo-angular-layout"],["filesaver","@progress/kendo-file-saver"],["fileselect","@progress/kendo-angular-upload"],["filter","@progress/kendo-angular-filter"],["flatcolorpicker","@progress/kendo-angular-inputs"],["floatingactionbutton","@progress/kendo-angular-buttons"],["floatinglabel","@progress/kendo-angular-label"],["formfield","@progress/kendo-angular-inputs"],["forms","@progress/kendo-angular-inputs"],["gantt","@progress/kendo-angular-gantt"],["grid","@progress/kendo-angular-grid"],["gridlayout","@progress/kendo-angular-layout"],["icon","@progress/kendo-angular-icons"],["inlineaiprompt","@progress/kendo-angular-conversational-ui"],["label","@progress/kendo-angular-label"],["lineargauge","@progress/kendo-angular-gauges"],["listbox","@progress/kendo-angular-listbox"],["listview","@progress/kendo-angular-listview"],["loader","@progress/kendo-angular-indicators"],["map","@progress/kendo-angular-map"],["maskedtextbox","@progress/kendo-angular-inputs"],["menu","@progress/kendo-angular-menu"],["multicolumncombobox","@progress/kendo-angular-dropdowns"],["multiselect","@progress/kendo-angular-dropdowns"],["multiselecttree","@progress/kendo-angular-dropdowns"],["multiviewcalendar","@progress/kendo-angular-dateinputs"],["notification","@progress/kendo-angular-notification"],["numerictextbox","@progress/kendo-angular-inputs"],["otpinput","@progress/kendo-angular-inputs"],["pager","@progress/kendo-angular-pager"],["panelbar","@progress/kendo-angular-layout"],["pdfexport","@progress/kendo-angular-pdf-export"],["pdfviewer","@progress/kendo-angular-pdfviewer"],["pivotgrid","@progress/kendo-angular-pivotgrid"],["popover","@progress/kendo-angular-tooltip"],["popup","@progress/kendo-angular-popup"],["progressbar","@progress/kendo-angular-progressbar"],["qrcode","@progress/kendo-angular-barcodes"],["radialgauge","@progress/kendo-angular-gauges"],["radiobutton","@progress/kendo-angular-inputs"],["rangeslider","@progress/kendo-angular-inputs"],["rating","@progress/kendo-angular-inputs"],["ripple","@progress/kendo-angular-ripple"],["sankey","@progress/kendo-angular-charts"],["scheduler","@progress/kendo-angular-scheduler"],["scrollview","@progress/kendo-angular-scrollview"],["signature","@progress/kendo-angular-inputs"],["skeleton","@progress/kendo-angular-indicators"],["slider","@progress/kendo-angular-inputs"],["sortable","@progress/kendo-angular-sortable"],["sparkline","@progress/kendo-angular-charts"],["speechtotextbutton","@progress/kendo-angular-buttons"],["splitbutton","@progress/kendo-angular-buttons"],["splitter","@progress/kendo-angular-layout"],["spreadsheet","@progress/kendo-angular-spreadsheet"],["stacklayout","@progress/kendo-angular-layout"],["stepper","@progress/kendo-angular-layout"],["stockchart","@progress/kendo-angular-charts"],["svgicon","@progress/kendo-angular-icons"],["switch","@progress/kendo-angular-inputs"],["tabstrip","@progress/kendo-angular-layout"],["textarea","@progress/kendo-angular-inputs"],["textbox","@progress/kendo-angular-inputs"],["tilelayout","@progress/kendo-angular-layout"],["timeline","@progress/kendo-angular-layout"],["timepicker","@progress/kendo-angular-dateinputs"],["toolbar","@progress/kendo-angular-toolbar"],["treelist","@progress/kendo-angular-treelist"],["treeview","@progress/kendo-angular-treeview"],["typography","@progress/kendo-angular-typography"],["upload","@progress/kendo-angular-upload"],["window","@progress/kendo-angular-dialog"],["charts","@progress/kendo-angular-charts"],["conversationalui","@progress/kendo-angular-conversational-ui"],["tooltip","@progress/kendo-angular-tooltip"]]);var Je=Qe(He(We(import.meta.url)),"../proto/service.proto"),L=new $("contextapi.telerik.com:443",Je,{libName:T});var le=async()=>L.validateUserLicense();import at from"fs";import _e from"path";import{fileURLToPath as it}from"url";import{z as h}from"zod";var k=class{constructor(t,o,n){this.name=t;this.config=o;this.cb=n}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 P=(e,t)=>`# ${e.suiteName} - Code Validation & Quality Assurance
5
+ License Error: ${n}`);let l=new D.Metadata;if(a)try{l.add("x-license-key",o)}catch(y){throw g("Error adding license key to metadata:",y),new Error(`Failed to use license key: ${y.message}`)}s&&l.add("x-api-key",r),this.options?.libName&&l.add("x-library-name",this.options.libName),l.add("x-tool-name",this.toolNameHeader);let m=JSON.stringify({...t,source:"npm",version:re.version,os:process.platform,node_version:process.version});return l.add("x-request-metadata",ze(m)),l}async query(t){let o=await this.getMetadata();return new Promise((n,r)=>{this.client.query(t,o,(s,a)=>{s?r(new Error(s)):n(a)})})}async queryCssUtils(t){let o=await this.getMetadata();return new Promise((n,r)=>{this.client.cssUtilsSearch(t,o,(s,a)=>{s?(g("Error querying CSS Utils:",s),r(new Error(s))):n(a)})})}async queryIconsSearch(t){let o=await this.getMetadata();return new Promise((n,r)=>{this.client.iconsSearch(t,o,(s,a)=>{s?(g("Error querying Icons Search:",s),r(new Error(s))):n(a)})})}async queryBuildingBlocks(t){let o=await this.getMetadata();return new Promise((n,r)=>{this.client.buildingBlocksSearch(t,o,(s,a)=>{s?(g("Error querying Building Blocks:",s),r(new Error(s))):n(a)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((o,n)=>{this.client.validateUserLicense(null,t,(r,s)=>{r?(g("Error validating user license:",r),n(new Error(r))):o(s)})})}async queryThemeGenerate(t){let o=await this.getMetadata();return new Promise((n,r)=>{this.client.generateTheme(t,o,(s,a)=>{s?(g("Error querying context API/GenerateTheme:",s),r(new Error(s))):n(a)})})}async recordOrchestratorUserRequest({meta:t}){let o=await this.getMetadata({meta:t});return new Promise((n,r)=>{this.client.recordOrchestratorUserRequest(null,o,(s,a)=>{s?(g("Error recording orchestrator user request:",s),r(new Error(s))):n(a)})})}};import{z as B}from"zod";var Pt=B.object({user_id:B.string(),user_email:B.string().email()});import{z as u}from"zod";var Ye=u.object({Product:u.object({Id:u.number().int(),Code:u.string(),Name:u.string()}),License:u.nullable(u.object({Id:u.number().int(),Name:u.string(),Type:u.string(),Active:u.boolean()})),Availability:u.array(u.object({LicenseStart:u.nullable(u.string().datetime()),LicenseEnd:u.nullable(u.string().datetime())})),IsLicenseAvailable:u.optional(u.boolean())}),Rt=u.array(Ye);async function ae(e){let t=process.env.KENDO_MCP_ACCESS;if(t==="true"||t==="1"||t==="full")return"full";if(typeof t=="string"&&(t.toLowerCase()==="agent"||t.toLowerCase()==="assistant"))return t.toLowerCase();let o=await e();return o.toLocaleLowerCase()==="agentic_ui_generator"?"agent":o.toLocaleLowerCase()==="ai_coding_assistants"?"assistant":"none"}var p="Kendo UI for Angular",b="angular",E="kendo",_=["AIPrompt","ActionSheet","AppBar","ArcGauge","AutoComplete","Avatar","Badge","Barcode","BottomNavigation","BreadCrumb","Button","ButtonGroup","Calendar","Card","ChartWizard","Charts","CheckBox","Chip","ChipList","ChunkProgressBar","CircularGauge","CircularProgressBar","ColorGradient","ColorPalette","ColorPicker","ComboBox","ContextMenu","ConversationalUI","DataQuery","DateInput","DateMath","DatePicker","DateRange","DateTimePicker","Diagram","Dialog","DragandDrop","Drawer","Drawing","DropDownButton","DropDownList","DropDownTree","Editor","ExcelExport","ExpansionPanel","FileSaver","FileSelect","Filter","FlatColorPicker","FloatingActionButton","FloatingLabel","Forms","FormField","Gantt","Gauges","General","Grid","GridLayout","Icon","InlineAIPrompt","Label","LinearGauge","ListBox","ListView","Loader","Map","MaskedTextBox","Menu","MultiColumnComboBox","MultiSelect","MultiSelectTree","MultiViewCalendar","Notification","NumericTextBox","OTPInput","Pager","PanelBar","PDFExport","PDFViewer","PivotGrid","Popover","Popup","ProgressBar","PromptBox","QRCode","RadialGauge","RadioButton","RangeSlider","Rating","Ripple","Sankey","Scheduler","ScrollView","Signature","Skeleton","Slider","SmartPasteButton","Sortable","StockChart","Sparkline","SpeechToTextButton","SplitButton","Splitter","Spreadsheet","StackLayout","Stepper","SVGIcon","Switch","TabStrip","TextArea","TextBox","TileLayout","Timeline","TimePicker","ToolBar","Tooltip","TreeList","TreeView","Typography","Upload","Window"],ie=new Map([["actionsheet","@progress/kendo-angular-navigation"],["aiprompt","@progress/kendo-angular-conversational-ui"],["appbar","@progress/kendo-angular-navigation"],["arcgauge","@progress/kendo-angular-gauges"],["autocomplete","@progress/kendo-angular-dropdowns"],["avatar","@progress/kendo-angular-layout"],["badge","@progress/kendo-angular-indicators"],["barcode","@progress/kendo-angular-barcodes"],["bottomnavigation","@progress/kendo-angular-navigation"],["breadcrumb","@progress/kendo-angular-navigation"],["button","@progress/kendo-angular-buttons"],["buttongroup","@progress/kendo-angular-buttons"],["calendar","@progress/kendo-angular-dateinputs"],["card","@progress/kendo-angular-layout"],["chartwizard","@progress/kendo-angular-chart-wizard"],["checkbox","@progress/kendo-angular-inputs"],["chip","@progress/kendo-angular-buttons"],["chiplist","@progress/kendo-angular-buttons"],["chunkprogressbar","@progress/kendo-angular-progressbar"],["circulargauge","@progress/kendo-angular-gauges"],["circularprogressbar","@progress/kendo-angular-progressbar"],["colorgradient","@progress/kendo-angular-inputs"],["colorpalette","@progress/kendo-angular-inputs"],["colorpicker","@progress/kendo-angular-inputs"],["combobox","@progress/kendo-angular-dropdowns"],["contextmenu","@progress/kendo-angular-menu"],["dataquery","@progress/kendo-data-query"],["dateinput","@progress/kendo-angular-dateinputs"],["datemath","@progress/kendo-date-math"],["datepicker","@progress/kendo-angular-dateinputs"],["daterangepicker","@progress/kendo-angular-dateinputs"],["datetimepicker","@progress/kendo-angular-dateinputs"],["diagram","@progress/kendo-angular-diagrams"],["dialog","@progress/kendo-angular-dialog"],["drawer","@progress/kendo-angular-layout"],["drawing","@progress/kendo-drawing"],["dropdownbutton","@progress/kendo-angular-buttons"],["dropdownlist","@progress/kendo-angular-dropdowns"],["dropdowntree","@progress/kendo-angular-dropdowns"],["editor","@progress/kendo-angular-editor"],["excelexport","@progress/kendo-angular-excel-export"],["expansionpanel","@progress/kendo-angular-layout"],["filesaver","@progress/kendo-file-saver"],["fileselect","@progress/kendo-angular-upload"],["filter","@progress/kendo-angular-filter"],["flatcolorpicker","@progress/kendo-angular-inputs"],["floatingactionbutton","@progress/kendo-angular-buttons"],["floatinglabel","@progress/kendo-angular-label"],["formfield","@progress/kendo-angular-inputs"],["forms","@progress/kendo-angular-inputs"],["gantt","@progress/kendo-angular-gantt"],["grid","@progress/kendo-angular-grid"],["gridlayout","@progress/kendo-angular-layout"],["icon","@progress/kendo-angular-icons"],["inlineaiprompt","@progress/kendo-angular-conversational-ui"],["label","@progress/kendo-angular-label"],["lineargauge","@progress/kendo-angular-gauges"],["listbox","@progress/kendo-angular-listbox"],["listview","@progress/kendo-angular-listview"],["loader","@progress/kendo-angular-indicators"],["map","@progress/kendo-angular-map"],["maskedtextbox","@progress/kendo-angular-inputs"],["menu","@progress/kendo-angular-menu"],["multicolumncombobox","@progress/kendo-angular-dropdowns"],["multiselect","@progress/kendo-angular-dropdowns"],["multiselecttree","@progress/kendo-angular-dropdowns"],["multiviewcalendar","@progress/kendo-angular-dateinputs"],["notification","@progress/kendo-angular-notification"],["numerictextbox","@progress/kendo-angular-inputs"],["otpinput","@progress/kendo-angular-inputs"],["pager","@progress/kendo-angular-pager"],["panelbar","@progress/kendo-angular-layout"],["pdfexport","@progress/kendo-angular-pdf-export"],["pdfviewer","@progress/kendo-angular-pdfviewer"],["pivotgrid","@progress/kendo-angular-pivotgrid"],["popover","@progress/kendo-angular-tooltip"],["popup","@progress/kendo-angular-popup"],["progressbar","@progress/kendo-angular-progressbar"],["promptbox","@progress/kendo-angular-conversational-ui"],["qrcode","@progress/kendo-angular-barcodes"],["radialgauge","@progress/kendo-angular-gauges"],["radiobutton","@progress/kendo-angular-inputs"],["rangeslider","@progress/kendo-angular-inputs"],["rating","@progress/kendo-angular-inputs"],["ripple","@progress/kendo-angular-ripple"],["sankey","@progress/kendo-angular-charts"],["scheduler","@progress/kendo-angular-scheduler"],["scrollview","@progress/kendo-angular-scrollview"],["signature","@progress/kendo-angular-inputs"],["skeleton","@progress/kendo-angular-indicators"],["slider","@progress/kendo-angular-inputs"],["smartpastebutton","@progress/kendo-angular-buttons"],["sortable","@progress/kendo-angular-sortable"],["sparkline","@progress/kendo-angular-charts"],["speechtotextbutton","@progress/kendo-angular-buttons"],["splitbutton","@progress/kendo-angular-buttons"],["splitter","@progress/kendo-angular-layout"],["spreadsheet","@progress/kendo-angular-spreadsheet"],["stacklayout","@progress/kendo-angular-layout"],["stepper","@progress/kendo-angular-layout"],["stockchart","@progress/kendo-angular-charts"],["svgicon","@progress/kendo-angular-icons"],["switch","@progress/kendo-angular-inputs"],["tabstrip","@progress/kendo-angular-layout"],["textarea","@progress/kendo-angular-inputs"],["textbox","@progress/kendo-angular-inputs"],["tilelayout","@progress/kendo-angular-layout"],["timeline","@progress/kendo-angular-layout"],["timepicker","@progress/kendo-angular-dateinputs"],["toolbar","@progress/kendo-angular-toolbar"],["treelist","@progress/kendo-angular-treelist"],["treeview","@progress/kendo-angular-treeview"],["typography","@progress/kendo-angular-typography"],["upload","@progress/kendo-angular-upload"],["window","@progress/kendo-angular-dialog"],["charts","@progress/kendo-angular-charts"],["conversationalui","@progress/kendo-angular-conversational-ui"],["tooltip","@progress/kendo-angular-tooltip"]]);var Je=Qe(He(We(import.meta.url)),"../proto/service.proto"),L=new $("contextapi.telerik.com:443",Je,{libName:b});var le=async()=>L.validateUserLicense();import at from"fs";import _e from"path";import{fileURLToPath as it}from"url";import{z as h}from"zod";var k=class{constructor(t,o,n){this.name=t;this.config=o;this.cb=n}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 P=(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:
@@ -369,14 +369,14 @@ After gathering information:
369
369
  - Consistent ${e} theme application across all components
370
370
  - Custom theme variables properly defined and scoped
371
371
  - ${e} icon fonts properly loaded and optimized
372
- - Brand colors integrated with ${e} component themes`});function ce(e,t,o){let{name:n,title:r,description:s,layoutAssistantName:a,codeAssistantName:l,styleAssistantName:m,iconAssistantName:y,suiteName:S,libKey:c,components:A}=e,d=new k(n,{title:r,description:s,requiredAccess:e.requiredAccess,inputSchema:{userIntent:h.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 ${S} components you want to use.`),needsComponentsDocsConfidence:h.number().min(0).max(1).default(1).describe("Confidence (0-1) to include Component Documentation assistance. Default is 1."),needsLayoutConfidence:h.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Layout assistance. Default is 0."),needsStylingConfidence:h.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Theming/Styling assistance. Default is 0."),needsResponsiveBehaviorConfidence:h.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Responsive Behavior assistance. Default is 0."),needsIconsConfidence:h.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Icons assistance. Default is 0."),componentsNeeded:h.array(h.enum(A)).optional().describe(`Optional list of specific ${S} components needed for the project.`)}},async({userIntent:f,needsComponentsDocsConfidence:b,needsLayoutConfidence:C,needsStylingConfidence:v,needsResponsiveBehaviorConfidence:Q,needsIconsConfidence:W,componentsNeeded:J},{_meta:Le})=>{g("UI Orchestrator called with:",{userIntent:f,needsComponentsDocsConfidence:b,needsLayoutConfidence:C,needsStylingConfidence:v,needsResponsiveBehaviorConfidence:Q,needsIconsConfidence:W});try{await o.recordOrchestratorUserRequest({meta:{userIntent:f,componentsNeeded:J,_meta:Le}})}catch(O){throw x(O)}let Me=d.server?.server.getClientCapabilities?.()?.elicitation,X;if(Me&&v>.3&&v<=.6){let O=await d.server?.server.elicitInput({message:"I was unable to determine if you need custom Kendo Theme assistant. Can you please confirm?",requestedSchema:{type:"object",properties:{includeCustomTheming:{type:"boolean",description:"Whether to include Custom Theming assistance in the workflow."}},required:["includeCustomTheming"]}});O?.action==="accept"&&O.content?.includeCustomTheming&&(X=!0)}return{content:[{type:"text",text:U({name:n,userIntent:f,includeComponentsDocs:b>.3,includeTheming:v>.6||!!X,includeLayout:C>.5,includeIcons:W>.6,includeResponsive:C>.5&&Q>.4,layoutAssistantName:a,codeAssistantName:l,styleAssistantName:m,iconAssistantName:y,suiteName:S,libKey:c,components:J},t)}]}});return d}function pe(e,t){let{name:o,title:n,description:r,iconAssistantName:s,codeAssistantName:a,suiteName:l,libKey:m,components:y}=e;return new k(o,{title:n,description:r,inputSchema:{userIntent:h.string().describe(`Describe what you want to build or what components you're looking for. Include the type of functionality, features, or UI elements you need from ${l}.`),needsIconsConfidence:h.number().min(0).max(1).default(.7).describe("Confidence (0-1) to include Icons assistance. Default is 0.7."),componentsNeeded:h.array(h.enum(y)).optional().describe(`Optional list of specific ${l} components you want to learn about.`)},requiredAccess:e.requiredAccess},async({userIntent:c,needsIconsConfidence:A,componentsNeeded:d},{_meta:f})=>{g("Assistant Orchestrator called with:",{userIntent:c,needsIconsConfidence:A,componentsNeeded:d});try{await t.recordOrchestratorUserRequest({meta:{userIntent:c,componentsNeeded:d,_meta:f}})}catch(C){throw x(C)}return{content:[{type:"text",text:G({name:o,userIntent:c,includeComponentsDocs:!0,includeIcons:A>.5,codeAssistantName:a,iconAssistantName:s,suiteName:l,libKey:m,components:d})}]}})}function de(e,t){let{name:o,title:n,description:r,suiteName:s,libKey:a,getPreContent:l}=e;return new k(o,{title:n,description:r,requiredAccess:e.requiredAccess,inputSchema:{prompt:h.string().describe("An enhanced prompt describing the HTML layout structure, design requirements or specific visual effects you want to achieve."),includeBuildingBlockExamples:h.boolean().describe("Whether to include building block examples. Defaults to false.").default(!1)}},async({prompt:m,includeBuildingBlockExamples:y})=>{g("Layout Assistant called with:",{prompt:m,includeBuildingBlockExamples:y});try{let c=(await t.queryCssUtils({query:m})).values.join(`
372
+ - Brand colors integrated with ${e} component themes`});function ce(e,t,o){let{name:n,title:r,description:s,layoutAssistantName:a,codeAssistantName:l,styleAssistantName:m,iconAssistantName:y,suiteName:S,libKey:c,components:A}=e,d=new k(n,{title:r,description:s,requiredAccess:e.requiredAccess,inputSchema:{userIntent:h.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 ${S} components you want to use.`),needsComponentsDocsConfidence:h.number().min(0).max(1).default(1).describe("Confidence (0-1) to include Component Documentation assistance. Default is 1."),needsLayoutConfidence:h.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Layout assistance. Default is 0."),needsStylingConfidence:h.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Theming/Styling assistance. Default is 0."),needsResponsiveBehaviorConfidence:h.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Responsive Behavior assistance. Default is 0."),needsIconsConfidence:h.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Icons assistance. Default is 0."),componentsNeeded:h.array(h.enum(A)).optional().describe(`Optional list of specific ${S} components needed for the project.`)}},async({userIntent:f,needsComponentsDocsConfidence:T,needsLayoutConfidence:C,needsStylingConfidence:v,needsResponsiveBehaviorConfidence:Q,needsIconsConfidence:W,componentsNeeded:J},{_meta:Le})=>{g("UI Orchestrator called with:",{userIntent:f,needsComponentsDocsConfidence:T,needsLayoutConfidence:C,needsStylingConfidence:v,needsResponsiveBehaviorConfidence:Q,needsIconsConfidence:W});try{await o.recordOrchestratorUserRequest({meta:{userIntent:f,componentsNeeded:J,_meta:Le}})}catch(O){throw x(O)}let Me=d.server?.server.getClientCapabilities?.()?.elicitation,X;if(Me&&v>.3&&v<=.6){let O=await d.server?.server.elicitInput({message:"I was unable to determine if you need custom Kendo Theme assistant. Can you please confirm?",requestedSchema:{type:"object",properties:{includeCustomTheming:{type:"boolean",description:"Whether to include Custom Theming assistance in the workflow."}},required:["includeCustomTheming"]}});O?.action==="accept"&&O.content?.includeCustomTheming&&(X=!0)}return{content:[{type:"text",text:U({name:n,userIntent:f,includeComponentsDocs:T>.3,includeTheming:v>.6||!!X,includeLayout:C>.5,includeIcons:W>.6,includeResponsive:C>.5&&Q>.4,layoutAssistantName:a,codeAssistantName:l,styleAssistantName:m,iconAssistantName:y,suiteName:S,libKey:c,components:J},t)}]}});return d}function pe(e,t){let{name:o,title:n,description:r,iconAssistantName:s,codeAssistantName:a,suiteName:l,libKey:m,components:y}=e;return new k(o,{title:n,description:r,inputSchema:{userIntent:h.string().describe(`Describe what you want to build or what components you're looking for. Include the type of functionality, features, or UI elements you need from ${l}.`),needsIconsConfidence:h.number().min(0).max(1).default(.7).describe("Confidence (0-1) to include Icons assistance. Default is 0.7."),componentsNeeded:h.array(h.enum(y)).optional().describe(`Optional list of specific ${l} components you want to learn about.`)},requiredAccess:e.requiredAccess},async({userIntent:c,needsIconsConfidence:A,componentsNeeded:d},{_meta:f})=>{g("Assistant Orchestrator called with:",{userIntent:c,needsIconsConfidence:A,componentsNeeded:d});try{await t.recordOrchestratorUserRequest({meta:{userIntent:c,componentsNeeded:d,_meta:f}})}catch(C){throw x(C)}return{content:[{type:"text",text:G({name:o,userIntent:c,includeComponentsDocs:!0,includeIcons:A>.5,codeAssistantName:a,iconAssistantName:s,suiteName:l,libKey:m,components:d})}]}})}function de(e,t){let{name:o,title:n,description:r,suiteName:s,libKey:a,getPreContent:l}=e;return new k(o,{title:n,description:r,requiredAccess:e.requiredAccess,inputSchema:{prompt:h.string().describe("An enhanced prompt describing the HTML layout structure, design requirements or specific visual effects you want to achieve."),includeBuildingBlockExamples:h.boolean().describe("Whether to include building block examples. Defaults to false.").default(!1)}},async({prompt:m,includeBuildingBlockExamples:y})=>{g("Layout Assistant called with:",{prompt:m,includeBuildingBlockExamples:y});try{let c=(await t.queryCssUtils({query:m})).values.join(`
373
373
  `)||"No CSS utilities found for the given prompt.",A=l?.()??"",d=f=>`${A}
374
374
 
375
375
  # Kendo Design System CSS Utilities
376
376
 
377
377
  ${c}
378
378
  ${f??""}
379
- `;if(y)try{let f=await t.queryBuildingBlocks({query:m,lib_name:a}),b="";f.items?.length>0&&(b=`
379
+ `;if(y)try{let f=await t.queryBuildingBlocks({query:m,lib_name:a}),T="";f.items?.length>0&&(T=`
380
380
  ## Building Blocks Examples
381
381
 
382
382
  The examples here are for demonstration purpose how CSS utils can be implemented in various building blocks.
@@ -391,7 +391,7 @@ ${C.description}
391
391
  ${C.code}
392
392
  \`\`\`
393
393
  `).join(`
394
- `)}`),c=d(b)}catch(f){g("Error calling building-blocks service:",f),c=d()}else c=d();return{content:[{type:"text",text:c}]}}catch(S){throw x(S)}})}function ue(e,t){let{name:o,title:n,description:r,libKey:s,getPreContent:a}=e;return new k(o,{title:n,description:r,requiredAccess:e.requiredAccess,inputSchema:{prompt:h.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})=>{g("Style Assistant called with:",{prompt:l});let m="";try{let c=await t.queryThemeGenerate({prompt:l});if(c.variables_json){let A=JSON.parse(c.variables_json),d=[];if(A)for(let f of Object.keys(A))typeof A[f]=="string"&&d.push(`${f}: ${A[f]}`);m=d.join(`
394
+ `)}`),c=d(T)}catch(f){g("Error calling building-blocks service:",f),c=d()}else c=d();return{content:[{type:"text",text:c}]}}catch(S){throw x(S)}})}function ue(e,t){let{name:o,title:n,description:r,libKey:s,getPreContent:a}=e;return new k(o,{title:n,description:r,requiredAccess:e.requiredAccess,inputSchema:{prompt:h.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})=>{g("Style Assistant called with:",{prompt:l});let m="";try{let c=await t.queryThemeGenerate({prompt:l});if(c.variables_json){let A=JSON.parse(c.variables_json),d=[];if(A)for(let f of Object.keys(A))typeof A[f]=="string"&&d.push(`${f}: ${A[f]}`);m=d.join(`
395
395
 
396
396
  `)}}catch(c){throw x(c)}let y=a?.()??"";return{content:[{type:"text",text:m?`Use the following CSS variables to style the web application, including colors, typography, spacing, and component appearance.
397
397
  Ensure the variables are applied consistently across all relevant elements.
@@ -408,11 +408,11 @@ ${m}
408
408
 
409
409
  `)}
410
410
 
411
- ${S}`}]}}catch(y){throw x(y)}})}function ge(e,t){let{name:o,title:n,description:r,libKey:s,suiteName:a,components:l,componentAliases:m,getPostContent:y}=e;return new k(o,{title:n,description:r,requiredAccess:e.requiredAccess,inputSchema:{query:h.string().describe("The query to search for."),component:h.enum(l).describe("The component to search for. If not specified, use General.")}},async({query:S,component:c})=>{g("Code Assistant called with:",{query:S,component:c});let A=c;if(m){let d=m[c];d&&(A=d)}try{let f=(await t.query({query:S,component:A?.toLowerCase()??"general",lib_name:s,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]})).values.map(v=>v.replace(/\0/g,"")),b=y?.({component:c})??"";return{content:[{type:"text",text:`${f.join(`
411
+ ${S}`}]}}catch(y){throw x(y)}})}function ge(e,t){let{name:o,title:n,description:r,libKey:s,suiteName:a,components:l,componentAliases:m,getPostContent:y}=e;return new k(o,{title:n,description:r,requiredAccess:e.requiredAccess,inputSchema:{query:h.string().describe("The query to search for."),component:h.enum(l).describe("The component to search for. If not specified, use General.")}},async({query:S,component:c})=>{g("Code Assistant called with:",{query:S,component:c});let A=c;if(m){let d=m[c];d&&(A=d)}try{let f=(await t.query({query:S,component:A?.toLowerCase()??"general",lib_name:s,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]})).values.map(v=>v.replace(/\0/g,"")),T=y?.({component:c})??"";return{content:[{type:"text",text:`${f.join(`
412
412
 
413
413
  `)}
414
414
 
415
- ${b}`}]}}catch(d){throw x(d)}})}function x(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.
415
+ ${T}`}]}}catch(d){throw x(d)}})}function x(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.
416
416
 
417
417
  Error Code: ${t.code} Error Message: ${t.message}`)}var he=e=>`${e}_ui_generator`,fe=e=>`${e}_assistant`,ye=e=>`${e}_layout_assistant`,Ae=e=>`${e}_component_assistant`,Se=e=>`${e}_style_assistant`,Ce=e=>`${e}_icon_assistant`;var ke=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.
418
418
 
@@ -423,7 +423,7 @@ Error Code: ${t.code} Error Message: ${t.message}`)}var he=e=>`${e}_ui_generator
423
423
  - You want to enforce best practices in styling, performance, and accessibility
424
424
 
425
425
  Returns:
426
- A detailed execution plan with validated tool calls, parameters, and reasoning \u2014 ensuring consistent, high-quality UI generation.`,Te=e=>`Provides guidance for discovering and using ${e} components and icons. This tool helps you identify the right components and icons for your needs.
426
+ A detailed execution plan with validated tool calls, parameters, and reasoning \u2014 ensuring consistent, high-quality UI generation.`,be=e=>`Provides guidance for discovering and using ${e} components and icons. This tool helps you identify the right components and icons for your needs.
427
427
 
428
428
  Use this tool when:
429
429
  - You need to discover which ${e} components are suitable for a specific use case
@@ -432,7 +432,7 @@ Use this tool when:
432
432
  - You want to gather component documentation and examples
433
433
 
434
434
  Returns:
435
- A focused plan for gathering component documentation and icon suggestions using the Component Assistant and Icon Assistant tools.`,be=`Retrieves Progress/Kendo Design System CSS utility classes and styling recommendations based on layout and design requirements.
435
+ A focused plan for gathering component documentation and icon suggestions using the Component Assistant and Icon Assistant tools.`,Te=`Retrieves Progress/Kendo Design System CSS utility classes and styling recommendations based on layout and design requirements.
436
436
  Use this tool to find the right CSS utilities for styling Kendo UI components or general web elements.
437
437
  It analyzes the provided design context and returns relevant utility classes with explanations and examples.
438
438
  Best suited for styling questions related to typography, spacing, colors, layout, transforms, and other utilities in the Progress/Kendo Design System.`,Ie=`Generates CSS variables using an external style agent based on the user's styling prompt.
@@ -526,7 +526,7 @@ ${j.PERFORMANCE_OPTIMIZATION}
526
526
  ${j.THEME_AND_STYLING}
527
527
  - Proper theme switching functionality (if implemented)
528
528
  - Only ONE theme import exists across the application
529
- - Make sure theme import mechanism is consistent with existing project setup`;var Xe={createOrchestrator:ce,createAssistantOrchestrator:pe,createLayoutAssistant:de,createStyleAssistant:ue,createIconSearch:me,createCodeAssistant:ge},Ze={orchestrator:he,assistantOrchestrator:fe,layoutAssistant:ye,codeAssistant:Ae,styleAssistant:Se,iconAssistant:Ce},et={orchestrator:ke,assistantOrchestrator:Te,layoutAssistant:be,styleAssistant:Ie,iconAssistant:Ne,codeAssistant:ve},tt={Orchestrator:{render:U},Validator:{render:P},SharedValidation:{getSteps:N}},ot={Angular:{steps:F,additionalPlan:V},React:{steps:z}},i={Tools:Xe,ToolNames:Ze,ToolDescriptions:et,Templates:tt,Validation:ot};var nt=i.ToolNames.codeAssistant("kendo"),we=()=>`# Kendo Design System Guidelines for ${p}
529
+ - Make sure theme import mechanism is consistent with existing project setup`;var Xe={createOrchestrator:ce,createAssistantOrchestrator:pe,createLayoutAssistant:de,createStyleAssistant:ue,createIconSearch:me,createCodeAssistant:ge},Ze={orchestrator:he,assistantOrchestrator:fe,layoutAssistant:ye,codeAssistant:Ae,styleAssistant:Se,iconAssistant:Ce},et={orchestrator:ke,assistantOrchestrator:be,layoutAssistant:Te,styleAssistant:Ie,iconAssistant:Ne,codeAssistant:ve},tt={Orchestrator:{render:U},Validator:{render:P},SharedValidation:{getSteps:N}},ot={Angular:{steps:F,additionalPlan:V},React:{steps:z}},i={Tools:Xe,ToolNames:Ze,ToolDescriptions:et,Templates:tt,Validation:ot};var nt=i.ToolNames.codeAssistant("kendo"),we=()=>`# Kendo Design System Guidelines for ${p}
530
530
 
531
531
  ## Setting up Styles/CSS
532
532
 
@@ -689,4 +689,4 @@ For ${e.component} component: \`ng add ${o}\`
689
689
  ## Component-Specific Guidelines
690
690
 
691
691
  ${e.componentInstructions}
692
- `),n};var Oe=i.ToolNames.layoutAssistant(E),Y=i.ToolNames.codeAssistant(E),Re=i.ToolNames.styleAssistant(E),H=i.ToolNames.iconAssistant(E);function De(e,t){return[i.Tools.createOrchestrator({name:i.ToolNames.orchestrator(E),title:"Kendo UI Generator",description:i.ToolDescriptions.orchestrator(p),layoutAssistantName:Oe,codeAssistantName:Y,styleAssistantName:Re,iconAssistantName:H,suiteName:p,libKey:T,components:_,requiredAccess:["agent"]},{validationSteps:i.Validation.Angular.steps,injectedPlan:i.Validation.Angular.additionalPlan},e),i.Tools.createAssistantOrchestrator({name:"kendo_angular_assistant",title:"Kendo UI Assistant",description:i.ToolDescriptions.assistantOrchestrator(p),codeAssistantName:Y,iconAssistantName:H,suiteName:p,libKey:T,components:_,requiredAccess:["assistant"]},e),i.Tools.createLayoutAssistant({name:Oe,title:"Kendo UI Layout Assistant",description:i.ToolDescriptions.layoutAssistant,suiteName:p,libKey:T,getPreContent:we,requiredAccess:["agent"]},e),i.Tools.createStyleAssistant({name:Re,title:"Kendo UI Style Assistant",description:i.ToolDescriptions.styleAssistant,libKey:T,getPreContent:Ee,requiredAccess:["agent"]},e),i.Tools.createIconSearch({name:H,title:"Kendo UI Icon Assistant",description:i.ToolDescriptions.iconAssistant,libKey:T,getPostContent:Pe,requiredAccess:["assistant","agent"]},e),i.Tools.createCodeAssistant({name:Y,title:"Kendo UI Component Assistant",description:i.ToolDescriptions.codeAssistant(p),libKey:T,suiteName:p,components:_,getPostContent:({component:n})=>Ue({component:n}),requiredAccess:["assistant","agent"]},e)].filter(n=>n.hasAccess(t))}var lt=it(import.meta.url),ct=_e.dirname(lt),pt=_e.resolve(ct,"../package.json"),dt=JSON.parse(at.readFileSync(pt,"utf-8")),$e=new st({name:"kendo-mcp",title:"Kendo MCP Server",version:dt.version});async function ut(){let e=new rt;g("Starting server...");let t=await ae(async()=>{let n=(await le())?.entitlement;return n?.Product?.Code||n?.product?.code});t!=="none"&&(L.toolNameHeader=t==="agent"||t==="full"?"agent":"assistant",De(L,t).forEach(n=>n.register($e))),await $e.connect(e)}ut();
692
+ `),n};var Oe=i.ToolNames.layoutAssistant(E),Y=i.ToolNames.codeAssistant(E),Re=i.ToolNames.styleAssistant(E),H=i.ToolNames.iconAssistant(E);function De(e,t){return[i.Tools.createOrchestrator({name:i.ToolNames.orchestrator(E),title:"Kendo UI Generator",description:i.ToolDescriptions.orchestrator(p),layoutAssistantName:Oe,codeAssistantName:Y,styleAssistantName:Re,iconAssistantName:H,suiteName:p,libKey:b,components:_,requiredAccess:["agent"]},{validationSteps:i.Validation.Angular.steps,injectedPlan:i.Validation.Angular.additionalPlan},e),i.Tools.createAssistantOrchestrator({name:"kendo_angular_assistant",title:"Kendo UI Assistant",description:i.ToolDescriptions.assistantOrchestrator(p),codeAssistantName:Y,iconAssistantName:H,suiteName:p,libKey:b,components:_,requiredAccess:["assistant"]},e),i.Tools.createLayoutAssistant({name:Oe,title:"Kendo UI Layout Assistant",description:i.ToolDescriptions.layoutAssistant,suiteName:p,libKey:b,getPreContent:we,requiredAccess:["agent"]},e),i.Tools.createStyleAssistant({name:Re,title:"Kendo UI Style Assistant",description:i.ToolDescriptions.styleAssistant,libKey:b,getPreContent:Ee,requiredAccess:["agent"]},e),i.Tools.createIconSearch({name:H,title:"Kendo UI Icon Assistant",description:i.ToolDescriptions.iconAssistant,libKey:b,getPostContent:Pe,requiredAccess:["assistant","agent"]},e),i.Tools.createCodeAssistant({name:Y,title:"Kendo UI Component Assistant",description:i.ToolDescriptions.codeAssistant(p),libKey:b,suiteName:p,components:_,getPostContent:({component:n})=>Ue({component:n}),requiredAccess:["assistant","agent"]},e)].filter(n=>n.hasAccess(t))}var lt=it(import.meta.url),ct=_e.dirname(lt),pt=_e.resolve(ct,"../package.json"),dt=JSON.parse(at.readFileSync(pt,"utf-8")),$e=new st({name:"kendo-mcp",title:"Kendo MCP Server",version:dt.version});async function ut(){let e=new rt;g("Starting server...");let t=await ae(async()=>{let n=(await le())?.entitlement;return n?.Product?.Code||n?.product?.code});t!=="none"&&(L.toolNameHeader=t==="agent"||t==="full"?"agent":"assistant",De(L,t).forEach(n=>n.register($e))),await $e.connect(e)}ut();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-mcp",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "type": "module",
5
5
  "bin": "./dist/index.js",
6
6
  "license": "See LICENSE.md",